In this example, i have a top module A. Inside it, I have module named my_RECORD (which happened to be option object) that I want to return back to caller when they call a proc.
Maple allows me to declare the proc to return my_RECORD. No problem., But when making a local variable inside the proc and using o::my_RECORD it complains that my_RECORD does not exist.
The solution is to change o::my_RECORD to o::A:-my_RECORD
My question why it did not complain the same way on the return value on the proc? for me, they are both semantically the same. One says the proc returns this type, and the other says the local variable is this type. So why had to do A:-my_RECORD on one but not the other?
Here is an example. Maple 2021.2 on windows 10.