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 then name GlobalReleaseHook in the class of the old value.
i1 = GlobalReleaseHook RR := (sym,val) -> << concatenate ( "assigning ", name val, " to ", name sym ) << endl o1 = --function-- o1 : Function
i2 = a=4.5 o2 = 4.5 o2 : RR
i3 = a=5.4 assigning 4.5 to a o3 = 5.4 o3 : RR
See also GlobalAssignHook.
Go to main index.
Go to concepts index.