[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RES: Cryptic OOP syntax
- From: André de Leiradella <leiradella@...>
- Date: Mon, 31 Jan 2005 16:10:10 -0300
> On Jan 29, 2005, at 18:30, André de Leiradella wrote:
>
>> b = new B('me')
>
> This is beyond Evil! It looks like Java! :8^)
>
> What about something more like "b = B.new( 'me' )" instead?
>
> Cheers
It's not a proposal, just a common syntax. I'd like too to have multiple
constructors in Lua as it is dynamic typed (it get's too confusing
inside the only constructor to compare all possible combinations of
arguments to decide how to instantiate the object).
Andre