There are some important but pershaps subtle points here so I 
thought I would stick in my two cents.


> > &(expr) is not an expression, it is a literal
> > in the sense that it is acceptable where literal text
> > is expected, not where an expression is expected.

This is almost exactly correct, but there is important caveat.  The 
form &(expr) is treated as text, but it is not quite true that it is 
acceptable where literal text is.  It depends on where it is used.  

setstring string quote"
alpha = "&(string) "
will cause an error, since &(string) is replaced by quote" leading 
PowerPro to attempt to evaluate
alpha = "quote " "
which is not syntatically correct.



> 
> because: Win.Debug(&(String))
> should not equate to anything. It's just bad syntax.


There is not really one syntax question here, there are two, because 
statements with &() substitution are effectively processed twice.

First, PowerPro scans that statement, evaluating and syntax checking 
the expression 
String
which is syntactically fine.  The result is literally substituted 
into the original, leading to
Win.debug(...)
where ... is meant to represent whatever the value of String is, 
which is again checked and which may or may not be valid 
syntatically.  In general,
win.debug(&(String)) 
is valid syntax for the first processing, and may or may not be 
valid for the second processing, depending on the value of the 
variable string.  
String = "alpha,beta"
would be fine, but, e.g., 
String = ")("
would cause an error.


In the example that started it all
Win.debug(&(1))
leads Powerpro to evaluate in the second scan
win.debug(1)
which is valid.  There is a bug which will be fixed in beta 15 which 
causes PowerPro to pull a Monty and go a bracket too far with &()) 
(the WW2 general Monty, that is).





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to