[parenscript-devel] how to represent "bandInfos[1].highlight = true; "?

Red Daly reddaly at stanford.edu
Thu Mar 6 23:09:34 UTC 2008


CL-USER> 
(ps:ps                                                                                                                                                                                                  

                       (setf (slot-value band-infos 1 'highlight) t))

"bandInfos[1].highlight = true;"

for some reason that works but the following doesn't:
CL-USER> 
(ps:ps                                                                                                                                                                                                  

           (setf (aref band-infos 1 'highlight) t))

Cannot translate quoted value HIGHLIGHT to javascript
   [Condition of type SIMPLE-ERROR]

Restarts:
 0: [ABORT] Return to SLIME's top level.
 1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" 
{120D76D9}>)

Shouldn't aref and slot-value be the same?

-red



Kevin Layer wrote:
>    (setf (.highlight (aref band-infos 1)) t)
>
> almost does it, but adds ()'s:
>
>    bandInfos[1].highlight() = true;
>
> I've tried every permutation I can think of... thanks.
>
> Kevin
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>   




More information about the parenscript-devel mailing list