lua-users home
lua-l archive

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


On Tue, Oct 19, 2010 at 6:48 AM, Javier Guerra Giraldez <javier@guerrag.com> wrote:
On Mon, Oct 18, 2010 at 2:20 PM, Francesco Abbate
> To impose always a specific
> order of creation is simply too much restrictive or just impossible in
> many applications.

i can't think of an example where:

- A can be created before B
- but A depends on B  (how did it exist before B, then?)
- you have to destroy A before B

objA = ClassA();
objB = ClassB();
objA:Bind(objB);
-- Now A depends on B.

Regards, James.