Few months ago, someone was kind enough to send me an email letting me know that in Maple 2021 the following new change will be in Object
I am attending a workshop on OOP. In Maple 2021, one will be able
to invoke a method of an instance of an object with the syntax: object_name:-method_name
However, I am not able to get the above to work in Maple 2021. And I looked at the help pages and see no such example. This is what I tried
local name := "me";
export get_name::static := proc( self::person, $ )
export set_name::static := proc( self::person, name, $ )
p:=Object( person ); #create object
Error, invalid input: person:-get_name uses a 1st argument, self (of type person), which is missing
What changes are needed in the above code to be able to use obj:-method() syntax?
Or is it possible that this change did not go into Maple 2021?