Métatables, métachamps et méthodes d’appel de nom.
Fonctions disponibles
getmetafield
Returns a raw metafield value from the target metatable. target may be any value, and field must be a string. The function does not call the metafield, does not invoke __index lookup, and returns nil when the metatable or field is missing.
getnamecallmethod
Retourne le current Luau namecall atom stocke dans the current namecall method. La function ne prend aucun arguments et retourne exactly one value. Si the current namecall method existe, que the current namecall method est superieur a 0 et que the current namecall method est non-null, elle pousse ces data comme string avec string return. Sinon, elle pousse nil. L function n inspecte pas les arguments, ne calcule pas un method name depuis un target object, et n appelle aucune metamethod. get_namecall_method est un alias de getnamecallmethod.
getrawmetatable
Returns the metatable currently attached to a target value, or nil when none is present. The function returns exactly one value and does not change the target. debug.getmethods is an alias for getrawmethods.
hasmetafield
Returns whether the target value has a non-nil raw metafield with the requested name. The function does not call the metafield, does not invoke __index lookup, and does not change readonly state.
hasmetatable
Returns whether the target value has a metatable. The function returns one boolean and does not return or change the metatable itself.
isreadonly
Returns whether a table is readonly. The argument must be a table, and the function does not change it.
makereadonly
Marks a table as readonly and returns no values.
makewriteable
Marks a table as writable and returns no values.
setnamecallmethod
Replaces the current namecall method string when a current namecall method exists. The method argument must be a string. If no current namecall method exists, the call returns no values and does not create one. set_namecall_method is an alias.
setrawmetatable
Sets the metatable for a target value and returns the original target. metatable must be a table or nil; nil clears the metatable. debug.setmethods is an alias for setrawmethods.
setreadonly
Sets whether a table is readonly and returns no values.