The method should be a function of two variables: the symbol to which a value is being assigned, and the old value about to be overwritten. The method should be stored under the name GlobalReleaseHook in the class of the old value. It is executed before the assignment occurs, and before the execution of GlobalAssignHook.
i1 : GlobalReleaseHook RR := (sym,val) -> << concatenate ( |
i2 : a=4.5 |
i3 : a=5.4 |
See also GlobalAssignHook.