[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Keyword parameters bug?
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Keyword parameters bug? |
Date: |
Wed, 15 Apr 2009 08:12:28 +0200 |
On Tue, Apr 14, 2009 at 6:15 PM, Alonso Andres <address@hidden> wrote:
> It seems there is a bug in Chicken (I'm using version 4.0) when using
> procedures with keywords parameters.
>
> Example:
>
> ----------[$ csi]
> #;1> (define (test-proc #!key some-arg string) (display some-arg)
> (newline) (display string) (newline))
> #;2> (test-proc some-arg: "X" string: "Y")
> X
> #<procedure (string . chars1001)>
> ----------
>
> The "string" parameter is not creating a local definition, it's the
> top level STRING procedure instead, contrary to what it's expected
> when using required parameters:
>
> ----------[$ csi]
> #;3> (define (test-proc some-arg string) (display some-arg) (newline)
> (display string) (newline))
> #;4> (test-proc "X" "Y")
> X
> Y
> ----------
>
I can not reproduce this. Are you using the svn trunk or the 4.0.0 tarball?
cheers,
felix