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

2010-07-05 Thread Alejandro Forero Cuervo
I have a module embedded-test that exports a procedure called 'register' and a macro called 'test' that transforms a form into a call to 'register'. It looks like this (I'm simplifying a lot): (module embedded-test (test register) (import chicken scheme) (define (register) #f) (define-sy

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

2010-07-05 Thread Peter Bex
On Mon, Jul 05, 2010 at 01:04:02PM +0200, Alejandro Forero Cuervo wrote: > > Am I doing something wrong? I've tried various combinations of 'use', > 'import', 'require-library', 'import-for-syntax' and > 'require-extension' to no avail. How does one make a macro transform > a form into a call to

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

2010-07-05 Thread Alejandro Forero Cuervo
> 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 perha

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

2010-07-05 Thread Peter Bex
On Mon, Jul 05, 2010 at 01:59:13PM +0200, Alejandro Forero Cuervo wrote: > The generated embedded-test.import.scm has this: > > (eval '(import chicken scheme)) > (##sys#register-compiled-module > 'embedded-test > (list '(register . embedded-test#register)) > '((register . embedded-

Re: [Chicken-users] bug in let-optionals in 4.5.0?

2010-07-05 Thread Felix
From: Alejandro Forero Cuervo Subject: [Chicken-users] bug in let-optionals in 4.5.0? Date: Mon, 5 Jul 2010 00:33:58 +0200 > Now I'm stuck in another problem, it seems to be caused by a bug in > let-optionals. In Chicken 3.4.0, the following form evaluates to #f, > as expected: > > (let-optio

Re: [Chicken-users] How to load an extension?

2010-07-05 Thread Felix
From: Alejandro Forero Cuervo Subject: [Chicken-users] How to load an extension? Date: Sun, 4 Jul 2010 19:19:20 +0200 > > If an extension called, say, 'hello' has been installed, what's the > canonical way, with Chicken 4, to load it? (require-extension hello) > > I'm confused with require-ex

Re: [Chicken-users] Impossible constraint in asm

2010-07-05 Thread Felix
From: Lucas Jones Subject: [Chicken-users] Impossible constraint in asm Date: Sun, 4 Jul 2010 23:17:02 +0100 > Hello, Hi! > > I am trying to compile a cross-chicken for the Wii using the latest > DevKitPro. It provides a cross-compiling gcc 4.4.3 with the host > 'powerpc-eabi'. (The compiler i

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

2010-07-05 Thread Alejandro Forero Cuervo
> Yes, I'm using 4.5.0, but I didn't install the extension. I just ran > (use embedded-test) from the directory where I compiled it. > > Could you send me a tarball containing the full egg as-is, including the > setup and meta files? I'm attaching it to this message. Here is how I use it: tar

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

2010-07-05 Thread Alejandro Forero Cuervo
Oh, BTW, the meta file has a "needs" entry that you'll probably want to remove while testing this. Alejo. http://azul.freaks-unidos.net/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

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

2010-07-05 Thread Stephen Eilert
Try (define-for-syntax (register) #f) --Stephen Sent from my Emacs On Mon, Jul 5, 2010 at 10:45 AM, Alejandro Forero Cuervo wrote: > Oh, BTW, the meta file has a "needs" entry that you'll probably want > to remove while testing this. > > Alejo. > http://azul.freaks-unidos.net/ > > _

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

2010-07-05 Thread Felix
From: Alejandro Forero Cuervo 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 e

Re: [Chicken-users] bug in let-optionals in 4.5.0?

2010-07-05 Thread F. Wittenberger
Am Montag, den 05.07.2010, 00:33 +0200 schrieb Alejandro Forero Cuervo: > I'm experimenting with my format-compiler extension. I got past the > limitation preventing the module system from dealing with recursively > dependent modules I would not call this a limitation. IMHO a module system, whi

[Chicken-users] clueless about memory consumtion

2010-07-05 Thread F. Wittenberger
Hi, I'm surprised about the memory consumption pattern my chicken program exhibits after some hours running. Though I'd like to get a hand on exploration, since I have no idea how to boil it down to a test case. As it appears from more or less regular watching "top" I see the process as if was g

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

2010-07-05 Thread Alejandro Forero Cuervo
> >> 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,

Re: [Chicken-users] bug in let-optionals in 4.5.0?

2010-07-05 Thread Alejandro Forero Cuervo
Thanks for the quick fix! Can I assume that this will be fixed in the next Chicken release? Do you have a rough estimate of when the next release will be made? Thanks! Alejo. http://azul.freaks-unidos.net/ ___ Chicken-users mailing list Chicken-users

Re: [Chicken-users] How to load an extension?

2010-07-05 Thread Alejandro Forero Cuervo
This makes perfect sense. Thanks for the explanation. > > If an extension called, say, 'hello' has been installed, what's the > > canonical way, with Chicken 4, to load it? > > (require-extension hello) > > > > > I'm confused with require-extension, require-library, require, import, > > use an

Re: [Chicken-users] clueless about memory consumtion

2010-07-05 Thread Thomas Chust
2010/7/5 Jörg F. Wittenberger : > [...] > I'm surprised about the memory consumption pattern my chicken program > exhibits after some hours running. > [...] > whereby the difference has a change to be attributed to some > string->symbol usage.) > [...] Hello, this may be completely irrelevant, bu