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))

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to