lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>Another problem, apart from readability, is when copying and pasting:
>AnothertableWithMeaningfulName[ #tableWithMeaningfulName + 1 ] = value
>Oops! I changed the table name but forgot to change the name in the  

I see the issue, but the fix isn't to add new syntax for appending to tables
(or at least that is at best a partial fix). There may be other mentions of
the table name in other code that need changing after a copy and paste.

More useful (probably) would be some undeclared-variable-use checking to
warn about the other unchanged occurrences.


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.3/446 - Release Date: 12/09/2006