lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Equivalent to __name__ == “_main__”?
From
: Flemming Madsen <lua@
...
>
Date
: Tue, 7 Dec 2021 15:46:08 +0100
So .. For your example above the test *could* be like:
if arg and arg[0] == "tcpserver.lua" and ({...})[1] ~= "
tcpserver
" then
..
end
References
:
Equivalent to __name__ == “_main__”?
,
Paul Ducklin
Re: Equivalent to __name__ == “_main__”?
,
Victor Bombi
Re: Equivalent to __name__ == “_main__”?
,
Patrick Kurth
Re: Equivalent to __name__ == “_main__”?
,
Paul Ducklin
Re: Equivalent to __name__ == “_main__”?
,
Flemming Madsen
Prev by Date:
Re: Equivalent to __name__ == “_main__”?
Next by Date:
Re: Crash Analysis: Finalizer Logic in singlestep function can lead to Sandbox Escape Exploit
Previous by thread:
Re: Equivalent to __name__ == “_main__”?
Next by thread:
Crash Analysis : Erroneous finalizer called during tail call leads to heap buffer overflow
Index(es):
Date
Thread