[parenscript-devel] Problems with "new"

Mentus Sarovar mentusss at gmail.com
Sat Aug 6 22:41:44 UTC 2011


Oh s..., of course!

Going better to sleep now :-)

Thanks.

Matus

On Sun, Aug 7, 2011 at 12:34 AM, Anthony Fairchild
<fairchild.anthony at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>




More information about the parenscript-devel mailing list