[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [Suggestion] Passing upvalues to load()
- From: "Soni L." <fakedme@...>
- Date: Mon, 5 Oct 2015 19:55:51 -0300
I think load() should, in addition to _ENV, also take a list of
upvalues, which are only used when loading bytecode.
When loading bytecode _ENV is assumed to be the first upvalue, upvalue
0, so we just need to make it varargs for the other upvalues.
This reduces the need for debug.upvaluejoin() (or w/e, setupvalue?) when
loading bytecode.
--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.