[top][index]
search for:

GlobalAssignHook -- hook for assignment to global variables

GlobalAssignHook -- a method name which is consulted when an assignment to a global variable occurs.

The method should be a function of two variables: the symbol to which a value is being assigned, and the value being assigned. The method should be stored under then name GlobalAssignHook in the class of the value. It will be executed just before the assignment occurs.

This method is used for instances of Type and Ring to arrange for the name of the type or ring to be set to the name of the global variable to which it is first assigned. The functions globalAssignFunction and globalReleaseFunction may installed as methods for this purpose.

i1 : RR.GlobalAssignHook = (sym,val) -> <<"assigning " <<val <<" to " <<sym <<endl;
i2 : a=4.5
assigning 4.5 to a

o2 = 4.5

o2 : RR

See also:

  • GlobalReleaseHook
  • Methods for GlobalAssignHook :

  • GlobalAssignHook Command
  • GlobalAssignHook Function
  • GlobalAssignHook Manipulator
  • GlobalAssignHook MarkUpType
  • GlobalAssignHook ScriptedFunctor
  • GlobalAssignHook Type
  • GlobalAssignHook Variety

  • [top][index]
    search for: