MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: Operators




On Fri, 12 Apr 1996, Jefferson M. Dubrule wrote:

> --- slayer@kaiwan.com wrote:
> >((!!x + !!y) == 1)
> 
> yeah, but that way takes as much as 3 extra ticks (varies depending on the
> values for x and y), but should only be important if you're doing a long
> loop (such as evaluating for p in (players()).
> --- end of quoted material ---
> 
> How 'bout "!x != !y"?
> 
> 
And how about «x != y»? It's what XOR have to check...
The advantage of an XOR operator against the «differences» operator is on
binary data manipulation (eg: A XOR A == 0 , use to set a register to 
zero in Assembler programmation.)


References:

Home | Subject Index | Thread Index