[parenscript-devel] How to call constructor?

Miron Brezuleanu mbrezu at gmail.com
Tue Feb 14 13:04:01 UTC 2012


On Tue, Feb 14, 2012 at 1:04 AM, Vladimir Sedach <vsedach at gmail.com> wrote:
> (ps (new (Person age shoe-size))) outputs new Person(age, shoeSize)
>
> This brings up a good point about the syntax of 'new'. Maybe the above
> is not a good way?
>
> In any case, I've written up a description of how 'new' works now in
> the reference manual
> (http://common-lisp.net/project/parenscript/reference.html).

Thanks for the information! The existing syntax is OK by me, the only
bug was the lack of documentation, which is now fixed. I think
changing the syntax would break a lot of code and give people trouble
without good reason.

One nitpick: with READTABLE-CASE set to :UPCASE the example in the
manual should read '(new (-person age shoe-size))' - or am I missing
something else?

Thank you again,

-- 
Miron Brezuleanu




More information about the parenscript-devel mailing list