"Anthony Youngman"...

> 'A = 1' and 'A = "1"' both result in IDENTICAL p-code.

This is certainly how the UD compiler works.

I say its a bug, because  'A="1.1"' and 'A="1,1"' *don't* result in the same
p-code - and it doesn't just differ by the comma - one is stored as a string
the other as a number.

This then causes problems running with 'SET.DEC ,' (which changes the
decimal separator to a comma) since the "1.1" which was meant to be a
literal gets changed to "1,1", eg...

VERSION="1.1"
READ VERSION.INFO FROM VFP,VERSION ELSE VERSION.INFO=''

The version file is keyed on strings which happen to be numbers.  The
version code is hard-coded into a program as a string - ie it has qoutes
round it.  With 'SET.DEC ,' to please some Europeans, the s/w converts
VERSION to "1,1" before doing the read since it is a number not a string -
and so fails to read the item. I'd want this to happen with 'VERSION=1.1'
which is specifying a number.  As with everything, this can be worked
around,  but what a pita.

Simon



-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to