-
Apparently pluto now reserves the common word
Besides the error reason being misleading/vague, is parent part of a field supposed to be reserved as well? I would think I think that is way too broad of a keyword reservation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
class Entity
__name = "Entity"
end
class Human extends Entity
__name = "Human"
function getHierarchy()
return { self, parent }
end
end
local h = new Human()
for h:getHierarchy() as t do
print(t.__name)
end As for shorthand accessor syntax, Pluto can remove this restriction: #245 |
Beta Was this translation helpful? Give feedback.
parent
has to be reserved for table constructors as otherwise the following would not be valid:As for shorthand accessor syntax, Pluto can remove this restriction: #245