HP Forums

Full Version: [BUG] Stack Pollution by PPL PRINT Statement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Still experimenting with PPL, trying to get the feel of it before porting any of my apps from the 50g. I encountered this:
Code:
EXPORT CHARLIE()
BEGIN
  PRINT("Entry mode is "+Entry);
END;
When run, this displays, as you might expect:
Code:
Entry mode is 2
on a separate scrolling screen (I'm an RPN junkie). What was unexpected was that the same text ended up on the lowest level of the stack as a quoted string. A little more experimentation revealed that this behavior only manifests with PPL programs that do not return a value.

- John
Reference URL's