[parenscript-devel] Problems with "new"

Anthony Fairchild fairchild.anthony at gmail.com
Sat Aug 6 22:34:19 UTC 2011


Hi, I'm new to parenscript but maybe I can answer this one.  I believe the
problem you are having is package related.  'new' is a macro in the
parenscript package, so you need to call it like this:

(parenscript:ps (parenscript:new (date)))

I recommend you use-package parenscript and you wouldn't have this problem:

CL-USER> (use-package :parenscript)
T
CL-USER> (ps (new (date)))
"new date();"

Hope this helps,

Anthony

On Sat, Aug 6, 2011 at 3:23 PM, Mentus Sarovar <mentusss at gmail.com> wrote:

> Hello
>
> i am new to parenscript. i am stuck with my attempt to create an
> instance of a new object.
>
> Why does:
>
> (parenscript:ps (new (*date)))
>
> translates to:
>
> "new(Date());"
>
> instead of:
>
> "new Date();"
>
> i tried various possiblities but simply could not get it. How does on
> do it properly?
>
> Thanks for help
> Matus
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20110806/ee88b303/attachment.html>


More information about the parenscript-devel mailing list