I'm trying to make a block-coding program, but I need to store a reference to a variable. As in, whenever you try and get a value of something, it returns the variable. If there's no way to do this, then I have other ideas. Anyway, heres what I got:
block = { func = print params = { x, 63, 63, 7 } } |
However, it just assumes the current value of x
rather that storing a reference to it. How would I go about doing this?
P#118844 2022-10-09 17:13


hmmm func calls could work I guess though that seems a bit clunky to maintain,
Off the top of my head you could store them in a table with a string key and look up based on that like "x" = ...
Unless I'm missing something lua really only gives you refrences to tables
P#118846 2022-10-09 17:42
[Please log in to post a comment]