Board Thread:Watercooler/@comment-5590118-20150701035141/@comment-24473195-20150703112058

Shining-Armor wrote:

DarthKitty wrote: @Shining-Armor: Well, a module's  value is always stored as   in the console. For example:

= myModule.sayHello('DarthKitty') Lua error in console input at line 5: attempt to index global 'myModule' (a nil value). = p.sayHello('DarthKitty') Hello, DarthKitty! Exactly, so why is it when writing code we use the rather obscure p table when in the end it doesn't really matter? Why not have standard table names for the different modules? Or one standard multi-character table name? Actually, when writing meta-modules, you'd generally use a more descriptive table name. But there is no need to do it when writing a simple module because it will add unnecessary complexity to it.