Can built-in routines be redefined in PPL? (ANSWERED)
|
12-12-2017, 11:40 PM
(This post was last modified: 12-13-2017 08:02 AM by StephenG1CMZ.)
Post: #1
|
|||
|
|||
Can built-in routines be redefined in PPL? (ANSWERED)
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:
The obvious attempt will not compile... Perhaps there is a way of hiding the SIN from the compiler. EXPORT STRING(SIN)... ? Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
12-13-2017, 05:55 AM
Post: #2
|
|||
|
|||
RE: Can built-in routines be redefined in PPL?
Hello,
Nope, sorry, build ins are not overridable. Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)