lua-users home
lua-l archive

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


> > 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.

A refers to B, but does not "depend on" it. Otherwise, objA would be
in an inconsistent state before the line "objA:Bind(objB)".

-- Roberto