[email protected] wrote:
> Martin Schneeweis <[email protected]> wrote:
> > Splitting the whole thing into 3 files does not work - I get a
> > runtime exception (when executing "mod-c"): "Error: unbound
> > variable: mod-a#test-a".  
> 
> The one thing that is missing from your example, is that mod-a is
> never loaded, this can be acheived by adding `(use mod-a)` in mod-b’s
> code.

Isn't "reexport" supposed to import? (in chicken-5 there is no
"use" (I think))

chicken-4: Yes, when I add "(use mod-a)" in mod-b then I can call
"test-a" in mod-b - but calling "test-a" in mod-c still leads to the
same runtime error 

  - and if I also have to include "(use mod-a)" in mod-c (or
"(import mod-c)" in chicken-5) then the purpose of "reexport" is
defeated. No?

lg
Martin

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

Reply via email to