chicken-users
[Top][All Lists]
Advanced

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

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


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

Hi,

I am trying to reexport functions out of my own modules - but am
failing.

In my simple example I have 3 modules:

  - mod-a: exports a simple function
  - mod-b: does nothing except reexporting the simple function
  - mod-c: imports mod-b and calls the simple function

The behaviour in chicken-4 and chicken-5 are the same - when I pack all
3 modules in the same file the whole thing works (in Chicken-4 mod-c has
to "import" mod-b rather than just "use" it).

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".

Does the modules have to be eggs to be able to reexport?

lg
Martin

The attached files are for chicken-5



Attachment: all-in-one.scm
Description: Text Data

Attachment: compile.sh
Description: application/shellscript

Attachment: mod-a.scm
Description: Text Data

Attachment: mod-b.scm
Description: Text Data

Attachment: mod-c.scm
Description: Text Data


reply via email to

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