vendredi 19 juillet 2019

How to use variable names without overriding a module name?

math.random() works out of the box, but if I set math to something else it breaks

local math = 1 + 1 -- set math to something else math.random() -- breaks

is there any way to make math.random() still work while setting local math = 1 + 1?

I have a bunch of modules with dot-notation functions such as coord.get() or offset.get()

but then those base words like coord and offset become unusable for variable names, which is annoying

Aucun commentaire:

Enregistrer un commentaire