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:
- Re: Operators
- From: Jefferson.M.Dubrule@dartmouth.edu (Jefferson M. Dubrule)
Home |
Subject Index |
Thread Index