Before, keyword symbols were treated as quoted ones by Parenscript because of the fact that they self-evaluate in Lisp. This does make them inconsistent with the way that Parenscript handles other symbols, and inconsistent in the fact that quoted symbols don't evaluate to themselves so aren't really like keyword symbols. I do think treating keyword symbols like other symbols is simpler and more consistent. The other thing this highlights is a bug in the way defun/defvar/etc. handle their "name" parameters which should be symbols. I've fixed both, and a patch is now in the darcs repository.
Vladimir
On 9/29/07, Daniel Gackle danielgackle@gmail.com wrote:
This works:
(ps (defvar :x 1)) => "var x = 1;"
and so does this:
(ps x) => "x;"
but this doesn't:
(ps :x)
Attached is a simple patch to make this work for keywords. Is there any reason not to do this?
Daniel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel