Open goldenstein64 opened 3 years ago
The only problem with this is that metatables are set
by default, so the Copy(Copy)
idiom wouldn't work. Instead, we can just index both manually over letting metatables deal with it.
This might also mean we can remove Copy:Flush
? If the user wants their mapping removed after a call, they can just store it in TempTransform
.
We could also add a flag for auto-storing mappings in Transform
instead of TempTransform
, or even have a DebugTransform
for storing both.
A table that gets flushed after a copy call is finished. We can then make
Copy.Transform
persistent after every call and makeTempTransform
use__index
on it.This would affect every file that uses
Transform
, since we are changing the behavior of an existing namespace.