Awesome. This makes sense. Thank you for the quick reply.
Question: Do I need to declare 'local' in both 'local a,b,c' (in my file) and 'local t1,t2,t3', (in 'main.lua')?
Seems redundant.. Does it matter?
Search found 2 matches
- Tue Aug 23, 2016 8:26 pm
- Forum: General
- Topic: Loading external data into a function locally.
- Replies: 3
- Views: 2917
- Tue Aug 23, 2016 5:51 pm
- Forum: General
- Topic: Loading external data into a function locally.
- Replies: 3
- Views: 2917
Loading external data into a function locally.
Greetings, I have an external file containing multiple Lua tables that I would like to only use as local tables in a function found in main.lua. If I load them without 'local' in front of each table name, it works. If I load them with 'local' in front of each table name, my function cannot see the d...