메타테이블, 메타필드, 이름 호출 메서드.
사용 가능한 함수
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
the current namecall method에 저장된 current Luau namecall atom을 반환합니다. 이 function은 arguments를 받지 않고 exactly one value를 반환합니다. the current namecall method이 존재하고, the current namecall method이 0보다 크며, the current namecall method가 non-null이면 해당 data를 string return으로 string으로 push합니다. 그렇지 않으면 nil을 push합니다. function은 arguments를 검사하지 않고, target object에서 method name을 계산하지 않으며, metamethod를 호출하지 않습니다. get_namecall_method는 getnamecallmethod의 alias입니다.
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.