lua-users home
lua-l archive

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

On Wed, 2005-02-02 at 13:06, Mark Hamburg wrote:
> on 2/1/05 3:26 PM, PA at wrote:

> On the other hand, if the mechanisms in C++ and Python are adequate then so
> are the mechanisms in Lua as it exists right now.

If you mean methods are really just ordinary functions
in Python, attributes of the class object, and so can
be called by name without ambiguity, then of course
this is essential for Python inheritance to do 'super' calls
where it is mandatory, no matter what style you use:
in the __init__ method this is the only way to do
the superclass initisation.

In fact, the corresponding C++ mechanism is NOT adequate,
since the scope override notation can't handle some
ambiguities.. :)

John Skaller,
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language