[nem-en] Declaring Properties in the constructor - ala Boo
Rodrigo B. de Oliveira
rodrigobamboo at gmail.com
Fri Sep 29 22:54:55 CEST 2006
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
More information about the devel-en
mailing list