[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: text source of compiled functions
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 27 Jul 1999 06:51:23 -0300 (EST)
>From firstname.lastname@example.org Tue Jul 27 01:54:42 1999
>From: Pablo Saldo <email@example.com>
>>It may have gone unnoticed that Lua 3.2 now supports this: the complete
>>sent to lua_dostring is now kept inside Lua, and can be retrieved with the
>Is there a way to retrieve the code in a passive way, without executing any
I'm not sure what you mean here.
lua_dostring always executes the string it gets, but this execution can be
simply the definition of some functions, eg:
So, doing lua_dostring on this strings simply defines the function f.
(More precisely, it simply stores a function value into the global variable f.)