lua-users home
lua-l archive

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



 How might I refactor
my function so that the same variables are locals, if possible.

You should declare the locals inside your function. Delete lines 80 and 81; replace line 44 with 

     local strMessage, bTerminate = "", false

e