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
----------
Alonso
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users