Post Reply 
HP PPL compiler big, nasty, hairy, smelly, creapy BUG!
01-11-2014, 05:37 PM (This post was last modified: 01-11-2014 05:39 PM by patrice.)
Post: #11
RE: HP PPL compiler big, nasty, hairy, smelly, creapy BUG!
Quote:Your line EXPR("A:=9"); is doing nothing more than assigning the value 9
to the reserved HOME Real variable A.

The line has nothing to do with indirect addressing.

There is no pointer in your code that points indirectly to a variable!
The EXPR line is something like the minimum code to exhibit a supposed bug.

What do you think your indirect thing is doing?
You forge an arbitrary string that is fed to EXPR, my arbitrary string is "A:=9".
That your string is a constant or that you build it on fly following any way you want, you end up with a string.

do you prefer ? Is it indirect enough for you ?
Code:
EXPORT Indirect_Addressing()
BEGIN
LOCAL Ptr, Value, Tmp;
Ptr:="A"; Value:=9; Tmp:= Ptr+ ":="+ Value;
EXPR(Tmp);
END;

Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP PPL compiler big, nasty, hairy, smelly, creapy BUG! - patrice - 01-11-2014 05:37 PM



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