lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: declare func with luaL_dostring and call it with second luaL_dostring?
From
: Rapin Patrick <rapin.patrick@
...
>
Date
: Fri, 21 Sep 2012 20:43:29 +0200
function f()
io.write("Hello")
end
and then
f()
it tells me that global f is nil ??
To me, it should have worked.
It doesn't, of course, if you declare f as local:
local function f()
io.write("Hello")
end
It also won't work if you have closed and reopen the Lua state in between the 2 calls.
Follow-Ups
:
Re: declare func with luaL_dostring and call it with second luaL_dostring?
,
Jacob Ole Juul Kolding
References
:
declare func with luaL_dostring and call it with second luaL_dostring?
,
Jacob Ole Juul Kolding
Prev by Date:
lua_pushunsigned undocumented
Next by Date:
Re: Reading characters from stdin
Previous by thread:
declare func with luaL_dostring and call it with second luaL_dostring?
Next by thread:
Re: declare func with luaL_dostring and call it with second luaL_dostring?
Index(es):
Date
Thread