HP Forums

Full Version: Can built-in routines be redefined in PPL? (ANSWERED)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am wondering whether standard routines can be redefined.
This might be useful as a work-around for a bug, or as a way of making code more portable.
Imagine importing Python code using math.log and redefining that to ln, instead of having to change all of the code (using an editor without search and replace).

Code:


EXPORT SIN(XX) //Does not compile
BEGIN
 MSGBOX("SN");
END;

EXPORT MATH()
BEGIN
 MATH.SIN(90);
END;

The obvious attempt will not compile...
Perhaps there is a way of hiding the SIN from the compiler.
EXPORT STRING(SIN)... ?
Hello,

Nope, sorry, build ins are not overridable.

Cyrille
Reference URL's