chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Compile time modules query


From: James Baker
Subject: [Chicken-users] Compile time modules query
Date: Mon, 27 Oct 2014 15:02:12 +1100

Hey Folks,

Have been toying around with Chicken lately and just started learning
the module system which seems really nice to use so far.  Just have
one question which is probably obvious but I'm not seeing how to do
it.

I've got a trivial example below which works fine from the interpreter
but is there a way to make it work in compiled code?

;;;; module-test.scm
(define-interface things
  (one two))

(module first-module ((interface: things))
  (import scheme)

  (define one 1)
  (define two 2)
)

(functor (first-functor (M things)) things
  (import scheme (except M one))
  (define one 1.5)
  (define three 3)
)

;; these work in csi but fail in csc
(module fi = (first-functor first-module))
(eval 'one (module-environment 'fi))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]