[PEAK] RuleDispatch -- custom evaluation contexts.

Phillip J. Eby pje at telecommunity.com
Mon Mar 6 09:10:27 EST 2006


At 11:04 AM 3/6/2006 +0100, Simon Belak wrote:
>Phillip J. Eby wrote:
>>Generic functions and Dispatchers provide 'parse()' and 'parseRule()' 
>>methods for this purpose.
>
>Great!
>
>Am I correct in thinking the right way to do it is:
>
>   gf.when(gf.parse(rules, locals, globals))

Yep.  parseRule() works similarly, but takes a frame argument instead of 
locals/globals, which can be more convenient depending on your use case.




More information about the PEAK mailing list