Path: utzoo!attcan!uunet!convex!killer!ames!pasteur!ucbvax!decwrl!hplabs!hpl-opus!hpccc!hp-sde!hpfcdc!hpldola!ritchie From: ritchie@hpldola.HP.COM (Dave Ritchie) Newsgroups: comp.lang.forth Subject: Re: Forth and Functional Languages Message-ID: <11440002@hpldola.HP.COM> Date: 18 Sep 88 23:05:17 GMT References: <1625@crete.cs.glasgow.ac.uk> Organization: HP Elec. Design Div. -ColoSpgs Lines: 13 >/ hpldola:comp.lang.forth / ritchie@hpldola.HP.COM (Dave Ritchie) / 11:30 pm Sep 17, 1988 / >> >>For example, if you multiply "65536 * 65536 * 65536" you'll get the wrong >>answer in Forth or Pascal, because that expression requires a 48 bit integer, >>and neither language supports the automatic overflow of integer arithmetic >> > > I don't think so. try 51 bits + sign if in signed representation. > Dave Jeez, I shouldn't respond to notes late at night.... 49 bits (an 1 bit followed by 48 zero bits) + sign. Dave