[Top][All Lists]

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

[Chicken-users] functor support (C5)

From: Jörg F . Wittenberger
Subject: [Chicken-users] functor support (C5)
Date: 25 Aug 2018 18:50:44 +0200

Hi all,

I tried to package an egg exporting a functor.
for reference here:

`include` is literally copied to the .import.scm file

The actual code of the functor is in its own file, which is included here
around line 33.

This results in the include directive ending up compiled into the import library. Importing and instancing the functor will work if, and only if, the named file is found. Along whatever search path whatever content is found. Intuitively I'd say this defeats the idea of compiling the import library in the first place.

BTW: Did anything change about the line number information with Chicken 5? If so, I would have to re-check. Last time, maybe about a year ago when I tried Chicken 4 functor instances where a pain in the butt when it comes to error messages. Line numbers pertaining to errors within functors where always be given as the line of the functor instantiation.



reply via email to

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