[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: XPL: Things executing instead of displaying/printing



Harry:
So, not to worry?
Not if you observe the string-expression distinction in your code.
"1/2" (string) is NOT interchangeable with 1/2 (expression). This is
not unique to XPL!
If you want an XPL rule of thumb: You can PV a string at the cursor
position (CMline or text), but you can't GT an evaluated numeric
expression (Ascii-1 is appended to the result) unless you first
convert it into a string (>).

Here are more examples:

GT ;*; Puts "1+2"
GT ;*; Puts "1+2"
GT ;*; Puts "1+2"
GT ;*; Puts "1+2"
GT ;*; Puts "3"
GT ;*; Puts "3{Ascii-1}" (garbage)
GT >;*; Puts "3"

--
Carl Distefano
cld@xxxxxxxx