[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: cannot index a table loaded as a chunk
- From: "Ashwin Hirschi" <deery@...>
- Date: Sat, 21 Aug 2004 00:29:27 +0200
The script includes a CFunction named Include which uses luaL_loadfile()
to load chunks into the same lua state.
If I understand correctly your main script loads other scripts using your own Include function, now based on luaL_loadfile.
Are you sure this Include function also _executes_ the scripts that it loads?
If you changed the old lua_dofile calls here to luaL_loadfile ones, this isn't the case... [and you'll have to make sure the chunks are actually run, like you do in your main routine]
Sorry if I'm stating the obvious: it's tricky to keep track of changes to someone else's code at a distance [;-)].
Ashwin.
--
no signature is a signature.
- References:
- Multiple returns & list constructors, David Given
- Re: Multiple returns & list constructors, Asko Kauppi
- Re: Multiple returns & list constructors, David Given
- Re: cannot index a table loaded as a chunk, Michael Newberry
- Re: cannot index a table loaded as a chunk, Michael Newberry
- Re: cannot index a table loaded as a chunk, Ben Sunshine-Hill
- Re: cannot index a table loaded as a chunk, Michael Newberry
- Re: cannot index a table loaded as a chunk, Michael Newberry
- Re: cannot index a table loaded as a chunk, Ashwin Hirschi
- Re: cannot index a table loaded as a chunk, Michael Newberry