Post Reply 
HP PPL compiler big, nasty, hairy, smelly, creapy BUG!
01-13-2014, 10:15 PM
Post: #12
RE: HP PPL compiler big, nasty, hairy, smelly, creapy BUG!
(01-11-2014 07:42 AM)veeblefester Wrote:  The point is that the single line of code

EXPR(varptr+":="+'"var1"');

is a better, more elegant solution than

IF TYPE(var1)==2 then var1:=STRING(var1); end;
EXPR(varptr + ":=" + var1);.

The single line of code which you think is elegant relies on what can be best described as a bug. Single quotes are for symbolic expressions. It would not be surprising to see your code no longer work upon the next firmware update. I cannot help but wonder whether you have truly understood the way the addition operator + has been overloaded to handle string addition, and in general the addition of two objects of different types.

Graph 3D | QPI | SolveSys
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! - Han - 01-13-2014 10:15 PM



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