[DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?
[DiscordArchive] hmm, but in your examples there the classname is nowhere as string, would that matter?
Archived author: Grandold • Posted: 2022-05-16T17:24:48.202000+00:00
Original source
hmm, but in your examples there the classname is nowhere as string, would that matter?
Archived author: Foe • Posted: 2022-05-16T17:24:57.775000+00:00
Original source
nope
Archived author: Foe • Posted: 2022-05-16T17:25:38.704000+00:00
Original source
but in my example it's not really a class as you'd expect in other scripts, you have to deal with meta tables then
Archived author: Foe • Posted: 2022-05-16T17:25:41.325000+00:00
Original source
https://www.lua.org/pil/16.1.html
Archived author: Foe • Posted: 2022-05-16T17:25:42.795000+00:00
Original source
shown here
Archived author: Grandold • Posted: 2022-05-16T17:26:14.244000+00:00
Original source
aa ye i've read the link few times
Archived author: Grandold • Posted: 2022-05-16T17:27:39.532000+00:00
Original source
I'm pretty sure I tried something like
```
local classes = {
'A',
'B'
}
for k, v in pairs(classes) do
v:get()
end
```
Archived author: Grandold • Posted: 2022-05-16T17:27:54.726000+00:00
Original source
and ofc the classes had the get() function, and it never worked
Archived author: Grandold • Posted: 2022-05-16T17:28:38.871000+00:00
Original source
then I ran into that googling of variable variables and just thought okay it's not a thing in lua... but might need to try again tomorrow then
Archived author: Foe • Posted: 2022-05-16T17:29:00.638000+00:00
Original source
It is, just not natively, gotta write the framework yourself