The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
[BUG] Stack Pollution by PPL PRINT Statement
02-23-2014, 10:21 PM
Post: #1
[BUG] Stack Pollution by PPL PRINT Statement
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[BUG] Stack Pollution by PPL PRINT Statement - John R. Graham - 02-23-2014 10:21 PM



User(s) browsing this thread: 1 Guest(s)