Re: [Chicken-users] import and srfi-1

2010-07-25 Thread Nicolas Pelletier
Hello, On Fri, Jul 23, 2010 at 6:52 PM, Moritz Heidkamp mor...@twoticketsplease.de wrote: Hi, Nicolas Pelletier sxatrxtfxcrwamvjk...@gmail.com writes: nico...@dynamo:~/tmp$ csc -s -j test test.scm nico...@dynamo:~/tmp$ csc toto.scm nico...@dynamo:~/tmp$ ./toto just a little hint: the

Re: [Chicken-users] import and srfi-1

2010-07-23 Thread Moritz Heidkamp
Hi, Nicolas Pelletier sxatrxtfxcrwamvjk...@gmail.com writes: nico...@dynamo:~/tmp$ csc -s -j test test.scm nico...@dynamo:~/tmp$ csc toto.scm nico...@dynamo:~/tmp$ ./toto just a little hint: the disadvantage of this is that you either have to delete the test.so or recompile test.scm for every

[Chicken-users] import and srfi-1

2010-07-22 Thread schugk
Hi, I have some problems with the module system. Here is the code for test-chicken.scm: (require-extension srfi-1) (module test (rev) (import scheme) (import srfi-1) (define (rev ls) (fold cons '() ls)) ) (import test) (display (rev (list 1 2 3 4 5))) (newline) If I omit

Re: [Chicken-users] import and srfi-1

2010-07-22 Thread Nicolas Pelletier
Hello, you can do it the following way by generating the import module for test.scm: nico...@dynamo:~/tmp$ cat test.scm (module test (rev) (import scheme) (import srfi-1) (require-extension srfi-1) (define (rev ls) (fold cons '() ls)) ) nico...@dynamo:~/tmp$ cat toto.scm (require-extension