chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] reexport - not working as expected (or I have wrong


From: Martin Schneeweis
Subject: Re: [Chicken-users] reexport - not working as expected (or I have wrong expectations)
Date: Sat, 21 Jul 2018 14:31:48 +0200

address@hidden wrote:
> Martin Schneeweis <address@hidden> 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



reply via email to

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