TOT(0 seems broke
George Simon
GSimon at americanriverintl.com
Wed Mar 7 08:03:24 PST 2007
-----Original Message-----
From: Kenneth Brody [mailto:kenbrody at bestweb.net]
Sent: Wednesday, March 07, 2007 10:40 AM
To: George Simon
Cc: Fplist
Subject: RE: TOT(0 seems broke
Quoting George Simon (Wed, 7 Mar 2007 10:24:14 -0500):
> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at bestweb.net]
[...]
> Also, here's something you can do with TOT() that will delight and
> confuse everyone here. :-)
>
> If: foobar eq "Y"
> Then: xx = tot(foo)
> If: foobar ne "Y"
> Then: xx = tot(bar)
>
> What would you expect "xx" to hold? I'll tell you right away that
> it is _not_ the same as
>
> If: foobar eq "Y"
> Then: xx = xx + foo
> If: foobar ne "Y"
> Then: xx = xx + bar
>
> --
>
> Is xx a global dummy?
It doesn't matter. (After all, xx is explicitly being set a value
in the code, so its previous contents are irrelevent.)
However, for the sake of argument, say it is. Say that foo and bar
are both (6,.0) and xx is (8,.0,g).
--
I would expect it to be exactly what you say it won't be. :)
I just ran a test and it shows me to be right. :) :) :)
So what am I doing wrong?
More information about the Filepro-list
mailing list