oldFunction
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
oldFunction() Function
If a user-defined function redefines a standard MapTool function -- for instance, a user defines a function called
eval()
, redefining the standard MapTool eval() -- oldFunction() can be used in the user-defined function to call the original function.Usage
oldFunction(SPECIAL)
Parameter
SPECIAL
- oldFunction supports the same parameters as the function that it is referencing.
Examples
Used within a user defined function named
eval()
, oldFunction() is used to call the standard eval().
[h, if ( arg(0) == 0 ), code:
{
[h: macro.return = 0]
};{
[h: macro.return = oldFunction( arg(0) ) ]
}]