Defer evaluating a block argument until the D3PDObject is instantiated.
Sometimes you want to pass an argument to a block function that isn't
known at the time the D3PDObject is defined, for example the
StoreGate key to use. You could do this with a hook function
or a LOD function, but that's a bit cumbersome. Instead, you can
use DeferArg. DeferArg stores a string. If a block argument
has a value that's an instance of DeferArg, then this string
is evaluated at the time the D3PDObject is instantiated.
The arguments passed to the D3PDObject will be available
in the context in which the string is evaluated.
A global dictionary may be provided as an optional argument;
any additional keyword arguments will be merged into this
dictionary.
Example:
FooD3PDObject.defineBlock (1, 'SomeBlock', SomeTool,
Name = DeferArg ('"name_" + sgkey'))
If FooD3PDObject is then instantiated with a StoreGate key of `Bar',
then the Name argument of this block will be set to `name_Bar'.
Definition at line 59 of file D3PDObject.py.