Re: [Chicken-users] command-line-arguments

2008-10-11 Thread F. Wittenberger
Am Freitag, den 10.10.2008, 11:19 -0700 schrieb Elf: i'd recommend the r5rs primitive 'write' instead of 'display', 'printf', etc, if you want the external representation of your code. :) That's what would have recommended until a few weeks ago, when I found write to be the source of an

Re: [Chicken-users] command-line-arguments

2008-10-11 Thread Elf
On Sat, 11 Oct 2008, Jörg F. Wittenberger wrote: Am Freitag, den 10.10.2008, 11:19 -0700 schrieb Elf: i'd recommend the r5rs primitive 'write' instead of 'display', 'printf', etc, if you want the external representation of your code. :) That's what would have recommended until a few weeks

[Chicken-users] command-line-arguments

2008-10-10 Thread Wietse Jacobs
Hello, I've put the following in a file and compiled it with chicken: (begin (display (command-line-arguments)) (exit)) when I run this with: test.exe 1 argument I get: (1 argument) But this looks like a list of 2 arguments where I expected 1. Am I missing something? (I'm on windows XP,

Re: [Chicken-users] command-line-arguments

2008-10-10 Thread Peter Bex
On Fri, Oct 10, 2008 at 04:04:13PM +0200, Wietse Jacobs wrote: Hello, I've put the following in a file and compiled it with chicken: (begin (display (command-line-arguments)) (exit)) when I run this with: test.exe 1 argument I get: (1 argument) But this looks like a list of 2

Re: [Chicken-users] command-line-arguments

2008-10-10 Thread Mario Domenech Goulart
Hi Wietse On Fri, 10 Oct 2008 16:04:13 +0200 Wietse Jacobs [EMAIL PROTECTED] wrote: I've put the following in a file and compiled it with chicken: (begin (display (command-line-arguments)) (exit)) when I run this with: test.exe 1 argument I get: (1 argument) But this looks

Re: [Chicken-users] command-line-arguments

2008-10-10 Thread Wietse Jacobs
2008/10/10 Peter Bex [EMAIL PROTECTED]: On Fri, Oct 10, 2008 at 04:04:13PM +0200, Wietse Jacobs wrote: (display (command-line-arguments)) That's (kind of) a limitation of how 'display' works. #;1 (display (list foo bar)) (foo bar) Instead, you want: #;2 (printf ~S (list foo bar)) (foo

Re: [Chicken-users] command-line-arguments

2008-10-10 Thread Elf
i'd recommend the r5rs primitive 'write' instead of 'display', 'printf', etc, if you want the external representation of your code. :) -elf On Fri, 10 Oct 2008, Wietse Jacobs wrote: 2008/10/10 Peter Bex [EMAIL PROTECTED]: On Fri, Oct 10, 2008 at 04:04:13PM +0200, Wietse Jacobs wrote: