Hi, one of my maple codes gave surprising results. After some debugging, it could be traced to a behavior that can be illustrated by the following code: f := proc(x := X) option remember; x; end proc: g := proc(x := X) x; end proc: X := 0: f(); g(); X := 1: f(); g(); The code outputs 0 0 0 1 Apparently, the fact that X has been updated is not considered in the remember table. Is this behavior documented? It is very counterintuitive; one would expect the 'remember' facility to be transparent and f() and g() to behave identically.

Please Wait...