Cheers Phantom,
Yeah that's how I have it just now. Well, the only difference is that in your example code, I've split 'addon' into two separate tables with the code:
Lua Code:
local addon, addonName = ...
core[1] = {};
core[2] = {};
local F, V = unpack(select(2, ...));
But even with that, I still can't get it to work. The main reason I think is that I'd need to encompass all of my Chat_Module.lua functions within the ChatModuleEnable() function that you suggested in order to ensure that the code is only read if the module is enabled.
Can I dare ask?
On a scale of 1 to 10 on the bad practice scale, how bad would it be for the Chat_Module.lua functions to be read and stored to memory, but never called? (when the module is disabled, that is).
Hope I'm making sense here.
Aanson