At 04:55 AM 3/02/2004 +0000, you wrote:
Hi All,

Consider the program:

A = ''
A<-1> = ''
A<-1> = ''
A<-1> = 3
A<-1> = ''
A<-1> = 4
PRINT A<3>

I expect it output '3' but it outputs '4'. Whats the explanation? I'm on UV 9.6 [NT] running information flavour.

Regards,
Marco



Check what "A" really is just before your print.
I think that you will find it is   "3" @FM '"" @FM "4"
and not ""@FM "" @FM "3" @FM "" @FM  "4"

So that A<3> gives the you 4 not the 3 you expect


IIRC I have seen this behavior before where


A = "" and A<-1> = "" doesn't actually result in the marker being appended to the array.

Unfortunately I cant remember/don't know the reasoning or the why behind it. I will try and find out the situation I saw it if nobody else can shed any light.

Cheers,

.....Darren.....
============================================================
Law of Probable Dispersal:
Whatever it is that hits the fan will not be evenly distributed.
===========================================================



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

Reply via email to