next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: runHooks(HashTable,Thing,Thing)

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

Synopsis

Code

/home/dan/src/M2/M2/Macaulay2/m2/methods.m2:521:56-521:116: --source code:
runHooks  (HashTable,Thing,Thing   ) := (obj,key,arg ) -> (c := obj.cache; if c#?key then scan(c#key, hook -> hook arg))
/home/dan/src/M2/M2/Macaulay2/m2/methods.m2:517:63-517:110: --source code:
runHooks  (MutableHashTable,Thing,Thing   ) := (obj,key,arg ) -> if obj#?key then scan(obj#key, hook -> hook arg)

See also