next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

runHooks(HashTable,Thing,Thing) -- run the hook functions stored in an object

Synopsis

Code

../../m2/methods.m2:491:56-491:116: --source code:
runHooks  (HashTable,Thing,Thing   ) := (obj,key,arg ) -> (c := obj.cache; if c#?key then scan(c#key, hook -> hook arg))
../../m2/methods.m2:487:63-487:110: --source code:
runHooks  (MutableHashTable,Thing,Thing   ) := (obj,key,arg ) -> if obj#?key then scan(obj#key, hook -> hook arg)

See also