From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public From: Travis Griggs Subject: Re: OO, C++, and something much better! Date: 1997/01/23 Message-ID: <32E85804.1B8E@bmi.net>#1/1 X-Deja-AN: 211987637 references: <32E6C381.855@spork.niddk.nih.gov> content-type: text/plain; charset=us-ascii organization: Blue Mountain Internet mime-version: 1.0 reply-to: tkc@bmi.net newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.c++,comp.lang.smalltalk,comp.object x-mailer: Mozilla 3.0Gold (Macintosh; I; PPC) Date: 1997-01-23T00:00:00+00:00 List-Id: Don Harrison wrote: > : ...and many financial programs > :> :failed, because the numbers involved were so large that they overflowed > :> :various limits, but the Smalltalk programs kept running, because > :> :Smalltalk quietly switches to using floating point arithmetic when > :> :integer arithmetic overflows. > :> > :> That's a worry. > : > :That's not a worry--that's just wrong. Smalltalk quietly switches > :to a LargeInt object when integers overflow. > > Presumably LargeInts are integers implemented as two words rather than one? > Sounds reasonable. Actually, guess again. LargeIntegers are implemented as *variable* bytes. So they grow as you need them to. This is really cool when combined with the Fraction class. Ever hear of infinte precision rational numbers! I used this and a taylor series once to generate Pi past a 1000 decimals. Kinda useless, but totally cool how easy it was. :) -- Travis or Kerrin Griggs Key Technology (509) 529-2161 tkc@bmi.net (509) 527-8743