chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] -no-parentheses-synonyms broken?


From: Matt Gushee
Subject: [Chicken-users] -no-parentheses-synonyms broken?
Date: Fri, 30 Aug 2013 01:17:40 -0600

Hello, list--

Well, in the course of trying to figure out why my sxpath expressions
aren't working, I think I've discovered a bug in Chicken.

I hypothesize that filter expressions in the native sxpath syntax
don't work because they are delimited with [], and Chicken by default
treats square brackets as equivalent to parentheses. So I wanted to
see what would happen if I used csi -no-parentheses-synonyms. But it
seems that option has no effect. To wit:

$ csi -no-init -no-parentheses-synonyms

CHICKEN
(c) 2008-2013, The Chicken Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.8.0.4 (stability/4.8.0) (rev 578619b)
linux-unix-gnu-x86 [ manyargs dload ptables ]
compiled 2013-07-15 on aeryn.xorinia.dim (Darwin)

Disabled support for parentheses synonyms
#;1> '[a b c] ; Shouldn't this be an error?
(a b c)
#;2> (equal? '[a b c] '(a b c))
#t
#;3>

Similarly, if I compile this code with csc ... I note comparing
executables with 'cmp' shows some difference when the program is
compiled with vs. without -no-parentheses-synonyms, but as with csi
there is no apparent difference in behavior.

I also note that the manual says "-no-parentheses-synonyms STYLE", but
it is not clear what, if anything, is an appropriate value for the
STYLE argument.

Or am I doing something wrong here?

--
Matt Gushee



reply via email to

[Prev in Thread] Current Thread [Next in Thread]