[Bese-devel] Parenscript: slot-value doesn't like expressions

Daniel Gackle gackle at shaw.ca
Sat Dec 30 23:13:35 UTC 2006


Here's another bug - perhaps a symptom of the same problem?

  (js (setf (slot-value x 'y) (+ (+ a 3) 4))) =>
    "x.y += 4;"

when it should be "x.y = (a + 3) + 4;". Interestingly, it's fine if you take
out slot-value:

  (js (setf x (+ (+ a 3) 4))) =>
    "x = (a + 3) + 4;"

Daniel


-----Original Message-----
From: bese-devel-bounces at common-lisp.net
[mailto:bese-devel-bounces at common-lisp.net] On Behalf Of Daniel Gackle
Sent: Saturday, December 30, 2006 2:43 PM
To: bese-devel at common-lisp.net
Subject: [Bese-devel] Parenscript: slot-value doesn't like expressions

In Parenscript 20061003, 

  (js (slot-value (if yes a b) 'prop)) => 
    "yes ? a : b.prop;"

when I need "(yes ? a : b).prop". Similarly,

  (js (slot-value (or a b) 'prop)) => 
    "a || b.prop;"

instead of "(a || b).prop". Can this be fixed, and/or is there a way to make
the parentheses go the way I want?

Thank you,
Daniel

_______________________________________________
bese-devel mailing list
bese-devel at common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel




More information about the bese-devel mailing list