[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Determining if _ENV is the first upvalue of a closure?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 13 Mar 2015 13:48:13 -0300
> I can imagine a scenario in which one would not want to expose actual
> source code, but would be willing to provide an API naming the upvalues.
The source code is present in a precompiled chunk only if the code is loaded
with luaL_loadstring or plain load. By using luaL_loadbuffer or optional
arguments in load, you can provide you own string for error messages
instead of the source code.