There may be a little confusion here too because unidata and some flavors in universe have vector math on by default, so for example:
001 A=1:@AM:3 002 B=2:@VM:9 003 CRT A+B on unidata and universe in information flavor this will print 3]9^3, while universe in ideal or pick flavor will print 0. So I can see where someone might have an expectation that the = operator will also see vectors, but it doesn't. you need to use eqs. On Jul 24, 2012, at 1:09 PM, George Gallen wrote: > I second Wil on this one. > > I wouldn't expect two dynamic arrays to be equal (using the = operator) > unless they > Were EXACTLY the same, since a dynamic array is nothing more than a string > variable > With multiple delimiters, so by checking x = y. > > If you want to compare dynamic arrays on an attribute by attribute level > maybe UV > Could have a way to say x<> = y<> or use the compare function which is what > your > Asking...to compare on array against another, vs asking if one array is > exactly like > The other. > > Which was why I asked about the length's being equal. If the two arrays > didn't have > The same length, then don't even bother to ask if they are the same! > > I think the confusion is with x=y where x and y are string representing > numbers they > Can be equal, but not the same - but once you put a delimiter in that string, > all bets > Are off. > > George > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Wjhonson > Sent: Tuesday, July 24, 2012 12:42 PM > To: [email protected] > Subject: Re: [U2] Comparing Two Dyamic Arrays > > > I think you missed the point that UV (and it's kin) do *not* compare all > strings numerically if possible. > It entirely depends on which operation you try to use. > That was the example I gave where all the strings are numerically identical > and yet the equal test fails. > > > > > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
