[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re: Still cryptic OOP syntax
- From: skaller <skaller@...>
- Date: 31 Jan 2005 13:44:42 +1100
On Mon, 2005-01-31 at 13:20, David Olofson wrote:
> > This would simplify the core, slow down processing due
> > to the indirection, and make things extensible,
> > since you can replace the 'add' function.
> Dunno if it would slow things down all that much, actually... Calls
> through function pointers are slightly slower, but switches and other
> conditionals aren't exactly free either.
Sure but I actually meant the bytecode should call a *Lua* function
not a C one.
I.e. it should treat
a + b
just the same way it treads
right now. The standard library would predefine 'add'
to work just the same as 'a + b' does right now..
However since lookup in Lua is dynamic .. you could replace it
at run time :)
John Skaller, mailto:email@example.com
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net