[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Object-oriented programming in Lua
- From: Mark Hamburg <mhamburg@...>
- Date: Sun, 16 Jan 2005 20:31:08 -0800
on 1/16/05 8:24 PM, Mark Hamburg at email@example.com wrote:
> Lua does very well with respect to polymorphism. Given method lookup and
> __index and __newindex metamethods, one can implement the following
> interfaces in any number of ways and the client need never be any the wiser:
> obj:method( ... )
> obj.field = expression
Lua should perhaps receive some negative marks for the fact that its
have no polymorphic support and this isn't really called out.
This is a place where generic functions might make sense.