[Bigsister-devel] Operator precedence in the tester language
Brought to you by:
aeby
|
From: Niels B. <ni...@ba...> - 2006-06-13 19:23:59
|
Hi,
the operator precedence in the tester language has puzzled me lately,
so I MUST suggest that it is brought in line with other languages. As it
is, it puts < > =3D=3D at a lower priority than && and ||, which is quite
surprising.
May I suggest
Index: uxmon/Monitor/Tester.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS /cvsroot/bigsister/bigsister/uxmon/Monitor/Tester.pm,v
retrieving revision 1.40
diff -u -r1.40 Tester.pm
--- uxmon/Monitor/Tester.pm 24 Jan 2006 15:40:44 -0000 1.40
+++ uxmon/Monitor/Tester.pm 12 Jun 2006 12:16:27 -0000
@@ -940,9 +940,9 @@
"." =3D> 3,
"*" =3D> 2,
"/" =3D> 2,
- ">" =3D> 8,
- "<" =3D> 8,
- "=3D=3D" =3D> 8
+ ">" =3D> 4,
+ "<" =3D> 4,
+ "=3D=3D" =3D> 4
);
my %defaults =3D (
"&&" =3D> 0,
Btw, your christmas feulleton included a chapter on "syntax, statements,
operators and functions", and one on "arrays and tables". These chapters
are missing in the developer manual at the docu site. If you have lost
them (of course you haven't) I have them archieved ...
/Niels
--=20
Niels Baggesen -- @home -- =C5rhus -- Denmark -- ni...@ba...
The purpose of computing is insight, not numbers -- R W Hamming
|