Daniel Gackle pointed this out:
(js (slot-value (if yes a b) 'prop)) => "yes ? a : b.prop;"
When in fact the code should be "yes ? a.prop : b.prop;"
Fix is now in the darcs repository. In particular, slot-value now handles arbitrary expressions as object arguments correctly. However, this does mean that because of the way special forms are handled now, that (slot-value this 'x) => "(this).x" since 'this' is treated as a special case, which is a bit ugly.
Vladimir
On 6/15/07, Vladimir Sedach vsedach@gmail.com wrote:
Daniel Gackle pointed this out:
(js (slot-value (if yes a b) 'prop)) => "yes ? a : b.prop;"
When in fact the code should be "yes ? a.prop : b.prop;"
parenscript-devel@common-lisp.net