On Tue, Apr 14, 2009 at 6:15 PM, Alonso Andres <[email protected]> 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


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to