Bart Lateur <bart.lateur@skynet.be> wrote:
+---------------
| M[UMPS] by example: operators
| http://www.jacquardsystems.com/Examples/operator.htm
+---------------
Thanks for the pointer!
+---------------
| M[UMPS] evaluates strictly from left to right, so that 1+1*2
| yields 4 and not 3.
+---------------
Well, what can I say?!? FOCAL *was* inspired directly by MUMPS, yet
it *did* have operator precedence, for arithmetic exprs at least --
I remember coding that part of FOCAL-10 as direct transliteration
of the FOCAL/F code. There was a separate small data stack for
intermediate results. (And a FOCAL-in-C snarfed off the net some
time ago agrees, too.)
Oh, well...
-Rob
-----
Rob Warnock, 8L-855 rpw3@sgi.com
Applied Networking http://reality.sgi.com/rpw3/
Silicon Graphics, Inc. Phone: 650-933-1673
1600 Amphitheatre Pkwy. FAX: 650-933-0511
Mountain View, CA 94043 PP-ASEL-IA