[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Object Oriented Lua scope?
- From: David Olofson <david@...>
- Date: Sun, 1 Jun 2003 03:22:19 +0200
On Sunday 01 June 2003 00.41, Deneb aka Alpha Cygnus wrote:
> it would really be nice if one could type something like this:
> x = {}
> with x do
> a=3
> b=5
> c="this is x.c"
> end
>
> print(x.a+x.b) --> 8
I've developed a strong dislike for that construct when doing Delphi
(Object Pascal) development. Considering that it's just syntactical
sugar, it's rather expensive, in my experience. Too much risk of
misreading code, and of writing code that doesn't do what think it
does. Evil.
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -'
--- http://olofson.net --- http://www.reologica.se ---