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: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public From: Eric Clayberg Subject: Re: OO, C++, and something much better! Date: 1997/01/26 Message-ID: <32EB92E9.3C2D@parcplace.com>#1/1 X-Deja-AN: 212361581 references: <5bphq4$5js@mulga.cs.mu.OZ.AU> <32E05FAF.47BA@concentric.net> <5buodl$bci@boursy.news.erols.com> <32E2FEC7.2F7B@concentric.net> <6PE5zLpF3RB@herold.franken.de> <32E57E2B.6CB7@epix.net> <32E57FBC.2325@epix.net> <5c4ita$3qs@mulga.cs.mu.OZ.AU> <32E6797A.6E21@parcplace.com> <32e87d25.0@194.131.7.3> content-type: text/plain; charset=us-ascii organization: ParcPlace-Digitalk, Inc. mime-version: 1.0 reply-to: clayberg@parcplace.com newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.c++,comp.lang.smalltalk,comp.object x-mailer: Mozilla 3.0 (Win95; U) Date: 1997-01-26T00:00:00+00:00 List-Id: Robert Dewar wrote: > Actually the approach in Smalltalk is rather simplistic. For a more > interesting approach to multi-precision arithmetic, have a look at > ABC, which can, in a sense compute in infinite precision using continued > fractions. For example, you can trivially write a program which will print > digits of pi, and watch it printing them, and let it print as many as > you want. The program to do this is just a few lines long. Hmmm. ABC sounds interesting, but from the description above, this does not sound like a capability that it has that Smalltalk does not have as well. Smalltalk can also do infinite precision arithmetic using its built-in Fraction class. I too have seen the pi example described above written in a few lines of Smalltalk code. -Eric