"felix winkelmann" <[EMAIL PROTECTED]> writes:

> On 5/25/07, Andreas Rottmann <[EMAIL PROTECTED]> wrote:
>>
>> Since Chicken lacks a built-in module system, I'm playing with the
>> syntax-case egg. I want to take an extension (say SRFI-39) and make
>> that (or parts of it) available as a syntax-case module. It seems I
>> have to use EXPORT-TOPLEVEL instead of the export list, since this
>> doesn't work:
>>
>> (module foo (append!)
>>   (require-extension srfi-1))
>> ===>
>> Error: missing definition for export(s): (append!)
>
> The module form expects source forms to define the exported
> identifiers. "require-extension" just loads compiled code, basically.
>
So there is no way to package extensions as syntax-case modules?

>>
>> This works:
>>
>> (module foo ()
>>   (require-extension srfi-1)
>>   (export-toplevel append!))
>>
>
> Not really: it makes "append!" available under an (unqualified) name
> "append!", not as an identifier specific to the module "foo".
>
Oh, I see. :-/

BTW, no need to CC me, I read the list.

Regards, Rotty
-- 
Andreas Rottmann         | [EMAIL PROTECTED]      | [EMAIL PROTECTED] | [EMAIL 
PROTECTED]
http://rotty.uttx.net    | GnuPG Key: http://rotty.uttx.net/gpg.asc
Fingerprint              | C38A 39C5 16D7 B69F 33A3  6993 22C8 27F7 35A9 92E7
v2sw7MYChw5pr5OFma7u7Lw2m5g/l7Di6e6t5BSb7en6g3/5HZa2Xs6MSr1/2p7 hackerkey.com

Software Patents: Where do you want to stifle innovation today?


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

Reply via email to