Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: arithmetic operator precedence



On Tue, 17 Jun 2008 11:38:29 +0100
Stephane Chazelas <Stephane_Chazelas@xxxxxxxx> wrote:
> Anyway, I was just curious about Peter's statement. I'm most
> probably not as versed in maths as he is, so was curious about
> the rationale behind his statement about -3**2 = 9 not being
> mathematically correct.

That was Vincent.  I'm inclined to leave the shell the way it is since
there seems to be no widespread agreement on having C_PRECEDENCES (which
probably few people will set explicitly) different from other shells (for
which it will automatically be used in the appropriate emulation).

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author