Module writing hints: Difference between revisions

m
cat
(→‎Name collisions: sugegst -> suggest)
*>SSH
m (cat)
Line 56: Line 56:


Beware of exporting any names from a module that are likely to be used as local variables in loops, whatever. This is why the [[Module programming guidelines]] suggest prefixing them all with the module name, or using a struct, so that all exported identifiers are struct sub-members.
Beware of exporting any names from a module that are likely to be used as local variables in loops, whatever. This is why the [[Module programming guidelines]] suggest prefixing them all with the module name, or using a struct, so that all exported identifiers are struct sub-members.
[[Category:Scripting]]
Anonymous user