chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] syntax-case modules questions


From: Andreas Rottmann
Subject: Re: [Chicken-users] syntax-case modules questions
Date: Fri, 25 May 2007 14:40:18 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

"felix winkelmann" <address@hidden> writes:

> On 5/25/07, Andreas Rottmann <address@hidden> 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         | address@hidden      | address@hidden | address@hidden
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?




reply via email to

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