lua-users home
lua-l archive

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


On Mon, Sep 13, 2004 at 09:14:50AM -0500, Matthew Harmon wrote:
> Ahhh... thank you very much.
> 
> So, is it true that having a SCRIPT loaded (and a reference to it saved), is
> not enough to prevent the STATE in which it is loaded from being GC'd?

Correct. The idea of a script being loaded within a given state is not
even valid. The loaded script is (potentially) available to all the
connected states. You just choose to execute it within a particular
state (and so for convenience load it such that it is placed on the
stack of that state).

-- Jamie Webb