[Top][All Lists]
[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
- [Chicken-users] Re: Compiling files that 'import' eggs that aren't installed?, (continued)
- [Chicken-users] Re: Compiling files that 'import' eggs that aren't installed?, Alejandro Forero Cuervo, 2010/07/04
- [Chicken-users] How to load an extension?, Alejandro Forero Cuervo, 2010/07/04
- [Chicken-users] bug in let-optionals in 4.5.0?, Alejandro Forero Cuervo, 2010/07/04
- [Chicken-users] Exporting proc and macro that references it?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Peter Bex, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Peter Bex, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Stephen Eilert, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?,
Felix <=
- Re: [Chicken-users] Exporting proc and macro that references it?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] bug in let-optionals in 4.5.0?, Felix, 2010/07/05
- Re: [Chicken-users] bug in let-optionals in 4.5.0?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] bug in let-optionals in 4.5.0?, Felix, 2010/07/06
- Re: [Chicken-users] bug in let-optionals in 4.5.0?, F. Wittenberger, 2010/07/05
- Re: [Chicken-users] How to load an extension?, Felix, 2010/07/05
- Re: [Chicken-users] How to load an extension?, Alejandro Forero Cuervo, 2010/07/05
- [Chicken-users] embedded-test and format-compiler ported to chicken 4, Alejandro Forero Cuervo, 2010/07/06
- Re: [Chicken-users] embedded-test and format-compiler ported to chicken 4, Felix, 2010/07/06
- Re: [Chicken-users] embedded-test and format-compiler ported to chicken 4, Alejandro Forero Cuervo, 2010/07/08