lua-users home
lua-l archive

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


----- Original Message ----- 
> How about this (for Lua 4.0):
> 
> Lua:
> function hello() print "Hello Beginner" end
> 
> C:
> lua_getglobal(L,"hello");
> lua_call(L,0,0);

Even shorter:

lua_dostring(L,"print 'Hello Beginner'");

/Erik