lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: How to evade using globals in an if block
From
: Doug Currie <doug.currie@
...
>
Date
: Sun, 24 Aug 2014 15:10:19 -0400
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
References
:
How to evade using globals in an if block
,
Paul Merrell
Prev by Date:
Re: luasec, luasocket smtps problems
Next by Date:
Explicit current directory needed, why?
Previous by thread:
Re: How to evade using globals in an if block
Next by thread:
Re: How to evade using globals in an if block
Index(es):
Date
Thread