lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Fwd: How to forward declare globals
From
: Charles Smith <cts.private.yahoo@
...
>
Date
: Mon, 6 Oct 2014 12:50:32 +0200
It's said that it's not necessary to have forward declarations, but then what's wrong with this:
v = m1
function m1 ()
print ("hello world")
end
v()
But this works:
function m1 ()
print ("hello world")
end
v = m1
v()
Follow-Ups
:
Re: Fwd: How to forward declare globals
,
Rob Kendrick
Re: Fwd: How to forward declare globals
,
Scott Morgan
Prev by Date:
[ANN] specl 13 released
Next by Date:
Re: Fwd: How to forward declare globals
Previous by thread:
[ANN] specl 13 released
Next by thread:
Re: Fwd: How to forward declare globals
Index(es):
Date
Thread