[nem-en] Declaring Properties in the constructor - ala Boo
Mark Haniford
markhaniford at gmail.com
Fri Sep 29 23:03:51 CEST 2006
Ahh, thanks for the heads up Rodrigo. I didn't know about events too.
That's very wrist-friendly as you intended Boo to be:)
On 9/29/06, Rodrigo B. de Oliveira <rodrigobamboo at gmail.com> wrote:
>
> On 9/29/06, Mark Haniford <markhaniford at gmail.com> wrote:
> > And just to follow up with what I just wrote, a "with" macro would be
> more
> > flexible than Boo's no-argument constructor because you could still have
> > mandatory constructor arguments and then supply the Property values in
> the
> > with clause.
> >
>
> In boo you can combine mandatory ctor arguments with initializers. And
> it works for events too by the way:
>
> w = Window("Mandatory Argument", Clicked: { print "clicked" })
>
> --
> bamboo
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20060929/211b32b2/attachment.html
More information about the devel-en
mailing list