[comp.lang.forth] More division

wmb@MITCH.ENG.SUN.COM (Mitch Bradley) (08/01/90)

Dr. Wavrik claims that the Forth community ought to absolutely agree
on a common set of basic words.  I agree.  However, my experience suggests
that "/" is not going to be one of them.  Hopefully, SM/MOD and FM/MOD
can be agreed upon.

Wishing very hard for something won't always make it so.  I wish that
"/" could be precisely specified in a way that everybody would agree
upon.  Many other people wish for this too.  However, the ANS Forth
committee tried for 2 or 3 years to reach such agreement, and it just
didn't happen.  Finally, the reality of the impasse sunk in, and a
compromise was reached to allow other work to proceed.

Things like this sometimes happen in the real world.  Welcome to it.

Mitch

peter@ficc.ferranti.com (Peter da Silva) (08/04/90)

Recently I came across an interesting note in the user manual for the
M2Amiga modula-2 compiler on the Amiga. They state that in M2Amiga
"DIV" and "MOD" have been defined to do division floored to -infinity,
and that "/" and "REM" produced the normal Wirthian functions. Sound
familiar?

What does ANSI Forth say about the modulus operator? It should be defined
to be consistent with the division operator, no?
-- 
Peter da Silva.   `-_-'
+1 713 274 5180.   'U`
<peter@ficc.ferranti.com>