Post Reply 
HP PPL compiler big, nasty, hairy, smelly, creapy BUG!
01-11-2014, 03:48 AM (This post was last modified: 01-11-2014 04:02 AM by Han.)
Post: #9
RE: HP PPL compiler big, nasty, hairy, smelly, creapy BUG!
(01-11-2014 03:05 AM)veeblefester Wrote:  IF TYPE(var1)==2 THEN var1 := STRING(var1);END; before the EXPR line.
This line is saying, if var1 is ALREADY a string then go ahead and convert
it to a string ANYWAY! This is a bug work around.

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

I don't get why you still insist on some sort of bug or compiler workaround. What exactly do you think the difference between effect of STRING(var1) and '"var1"' is? You are doing exactly the same thing. If anything, the '"var1"' (putting single quotes around a double-quotation of a variable that is ALREADY a string) is a hack because single quotes are delimiters for symbolic objects, as opposed to the STRING() solution. The STRING() command will add double quotes around any object, including strings. You need the extra set of double quotes because the addition operator + will strip the outer pair. Did you even read the explanation I gave regarding string addition? * palm to face *

Edit: Please humor me and type, in the command line, the following:

STRING("a string")

and post here EXACTLY what you see, including the exactly number of double quotes that show up in the result.

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-11-2014 03:48 AM



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