Re: load and upvalues
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: load and upvalues
- From: "Soni \"They/Them\" L." <fakedme@...>
- Date: Tue, 7 May 2019 20:55:51 -0300
On 2019年05月07日 7:43 p.m., Egor Skriptunoff wrote:
On Tue, May 7, 2019 at 11:55 PM Soni "They/Them" L. <fakedme@gmail.com
<mailto:fakedme@gmail.com>> wrote:
See: https://github.com/SoniEx2/loadx/
Ok, loadx is nice.
But where is dumpx?
The problem is that when you're writing Lua code, it's hard to predict
what would be the order of upvalues inside a function.
And it's a chance to accidentally swap upv1 and upv2 every time when
you're modifying the Lua code of the function.
That's why your loadx needs its counterpart dumpx to easily receive
all upvalues in their correct order.
Try It And See^TM
Then Try It Again based on the pcall result.