7 Sep
2001
7 Sep
'01
12:05 p.m.
Irfan Fazel wrote:
writeln(-2 pow 0); (* should be 1 *)
writeln(-2 pow 1);
writeln(-2 pow 2); writeln; (* should be 1 *)
Problem of relative priority between - and pow. writeln(-2 pow 0,' ',(-2) pow 0); gives -1 1 IIRC priority of pow should be greater than binary - but smaller than unary - This would give the behaviour that everybody expects. Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr