From: | Colin Wenzel |
Date: | 20 Dec 99 at 10:26:52 |
Subject: | Re: Stupid operator precedence... |
From: Colin Wenzel <colstv@hotkey.net.au>
On 20-Dec-99, Allan Odgaard wrote:
> From: Allan Odgaard <Duff@DIKU.DK>
> Hi there,
>
> It has always nagged me that == and != take precedence over &, ^ and
> |. Surely one never wants to perform bit-operations on a boolean
> result (except maybe ^, as there are no logical exclusive or, another
> thing that frustrates me...) but I thought my life would probably be
> better if someone was able to give me a good reason to why this
> decision was made? Thanks in advance...
>
> Regards Allan
It was probably easier to write the compiler that way.. (:/
It shouldn't pose a problem if you parenthisize your
equations sufficiently, it also makes it more readable,
your intensions are better understood too...
-------------------------------------
Colin Wenzel. Australia.
EMAIL: mailto:colstv@hotkey.net.au
URL: http://www.hotkey.net.au/~colstv/
ICQ: 17608330
MADE WITH 'AMIGA' 4000T With O.S 3.1
---------------------------------------