[parenscript-devel] The ps-macro for length

Daniel Gackle danielgackle at gmail.com
Sun Aug 10 22:57:43 UTC 2008


Parenscript ships with a helper macro like this:

(defpsmacro length (a)
  `(.size ,a))

But there's no "size" function for arrays or strings... in fact, is there a
"size" function in JS? For most things, it seems like one would want:

(defpsmacro length (a)
  `(@ ,a length))

What am I missing?

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20080810/b2079457/attachment.html>


More information about the parenscript-devel mailing list