chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Exporting proc and macro that references it?


From: Felix
Subject: Re: [Chicken-users] Exporting proc and macro that references it?
Date: Mon, 05 Jul 2010 15:57:33 +0200 (CEST)

From: Alejandro Forero Cuervo <address@hidden>
Subject: Re: [Chicken-users] Exporting proc and macro that references it?
Date: Mon, 5 Jul 2010 13:59:13 +0200

> 
>> I didn't get the error you're getting, but I think what you need is this
>> section from the manual:
>> 
>> [snip]
>> 
>> In other words, do (module embedded-test ((test register)) ...)
>> 
>> I think it worked because the code you pasted in the mail also exported
>> REGISTER, which your real code perhaps does not?
> 
> Hm, very strange.
> 
> I'm literally testing with this (after your suggestion):
> 
>   (module embedded-test ((test register) register)
>   (import chicken scheme)
> 
>   (define (register) #f)
>   (define-syntax test (syntax-rules () ((test) (register))))
>   )

Note: just using (test register) as export-list is fine, since
you are exporting register, anyway. You only need that if register
shouldn't be exported.

> 
> And yet, /opt/chicken-4.5.0/bin/csc test.scm && ./test yields the error I
> quoted. :-/  Are you using 4.5.0?
> 

Your .setup file installs embedded-test as `syntax' (see property-list
in the invocation if `install-extension'), which means the extension
has no runtime part (and thus nothing is loaded at runtime to
provide the necessary runtime code). Remove the `(syntax)' and it
works.


cheers,
felix



reply via email to

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