a) Don't try this on the Mac:
put format("Hanging in %0o seconds", 13)
I know I shouldn't have done it - but I deleted the wrong character, and I
don't think I shouldn't lose my work for a foolish mistake. In Win2000AS,
just does the same as "%o" - but in MacOS 9.1, repeatably, it hangs Rev
(1.1b1 in both cases).
b) Error in the Dictionary for "format":
Third example is:
format("%o in octal, %h in hex.",myNumber,myNumber)
Misleading - this gives an error (format: bad format string or parameter
mismatch) you need "%x" for hex. (Which is correctly documented further
down in the entry.)
c) Two undocumented features - the Dictionary entry for "format" does not
AFAICT mention that if you precede the 'charlength' with a zero, the padding
will be done with zeroes instead of spaces. Also that while "x" gives you
hex, "X" gives you hex with uppercase a-f. ie
format("(%3x in hex)", 13) --> "( d in hex)"
format("(%03x in hex)", 13) --> "(00d in hex)"
format("(%03X in hex)", 13) --> "(00D in hex)"
Ben Rubinstein | Email: [EMAIL PROTECTED]
Cognitive Applications Ltd | Phone: +44 (0)1273-821600
http://www.cogapp.com | Fax : +44 (0)1273-728866
_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution