#metatables

1 messages · Page 1 of 1 (latest)

wary cedar
#

dont understand metatables

deep wing
#

why do you want to know metatables

wary cedar
#

to get to more advanced topics of OOP and the syntax in general

#

@deep wing

dim marlin
#

i dont understand them either i dont bother with them icl

prisma stag
prisma stag
#

And when you do certain things to a table, it checks for a meta table with meta method attached

#

So when you index a table it checks for __index meta method

wary cedar
#

okay so @deep wing i get what metatables do but what does .__index do

ember abyssBOT
#

studio** You are now Level 6! **studio

deep wing
wary cedar
#

ty

#

oh well that's simpler then i thought

#

thanks for ur help

deep wing
#

ya

#

its kinda bloat anyway

#

i only use oop for fun

wary cedar
#

oh

wary cedar
#

?

deep wing
#

its a paradigm

#

you use it if you wanna

wary cedar
#

what would you use it for

deep wing
#

a game with alot of entities or things i could make classes for

#

i also use it for making services