lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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