Referring this in Human example class doesn't work as described
nicobrinkkemper opened this issue · 1 comments
nicobrinkkemper commented
Human.Eat() {
[string] food
this eaten push "$food"
# will return a string with the value:
@return:value "$this just ate $food, which is the same as $1"
}
This function prints out just ate corn, which is the same as corn
It should be like this:
Human.Eat() {
[string] food
this eaten push "$food"
# will return a string with the value:
@return:value "$(this name) just ate $food, which is the same as $1"
}
This function prints out Mark just ate corn, which is the same as corn
niieani commented
Thanks!