[parenscript-devel] Problems with new object initalization

Canhua chencanhua at fudan.edu.cn
Tue Apr 2 14:23:30 UTC 2013


(defvar my-log-reader (new (chain *yahoo* widget (LogReader "myLogger"))))


On Tue, Apr 2, 2013 at 10:07 PM, Victor <bobbie at ua.fm> wrote:

> Hello,
>
> I would like to express following line of code:
>
> var myLogReader = new YAHOO.widget.LogReader('**myLogger');
>
> in Parenscript-Lisp. According to the reference manual it might be
> something like:
>
> (defvar my-log-reader (new (@ *yahoo* widget LogReader "myLogger")))
>
> but I get a completely different result.
>
> What is the proper way to express such kind of statements in Parenscript?
>
> By the way, contrary to the reference manual, `var' form is not turned
> into a variable declaration in JavaScript.
>
> Thanks,
> Victor
>
> ______________________________**_________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.**net <parenscript-devel at common-lisp.net>
> http://lists.common-lisp.net/**cgi-bin/mailman/listinfo/**
> parenscript-devel<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/20130402/93c7c2d8/attachment.html>


More information about the parenscript-devel mailing list