[PEAK] RuleDispatch -- custom evaluation contexts.
Phillip J. Eby
pje at telecommunity.com
Sun Mar 5 19:38:10 EST 2006
At 01:01 AM 3/6/2006 +0100, Simon Belak wrote:
>If I understand correctly, predicates are currently parsed using caller's
>frame locals and globals. It would be nice if it were possible to pass a
>user-defined context along with rules (to where() and relatives).
>
>Use-case being wrappers (or just indirect calls) for generic functions.
Generic functions and Dispatchers provide 'parse()' and 'parseRule()'
methods for this purpose.
More information about the PEAK
mailing list