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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,245c84afd1e393ce X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!4988f22a!not-for-mail From: Newsgroups: comp.lang.ada References: <1581461.uQ1jN63t33@linux1.krischik.com> <5mo0f.529$B14.97@newssvr11.news.prodigy.com> <1x4pe4pv41qsn$.m5c5jawjqcpq.dlg@40tude.net> Subject: Re: What about big integers in Ada 2005? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <1Jv0f.453$ht7.299@newssvr21.news.prodigy.com> NNTP-Posting-Host: 64.164.117.94 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1128433597 ST000 64.164.117.94 (Tue, 04 Oct 2005 09:46:37 EDT) NNTP-Posting-Date: Tue, 04 Oct 2005 09:46:37 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: FKPO@MONTBWQR]TX\ZIBNFXBWR\HPCTL@XT^OBPLAH[\RYIBK^RAQFW[ML\THRCKV^GGZKJMGV^^_JSCFFUA_QXFGVSCYRPILH]TRVKC^LSN@DX_HCAFX__@J\DAJBVMY\ZWZCZLPA^MVH_P@\\EOMW\YSXHG__IJQY_@M[A[[AXQ_XDSTAR]\PG]NVAQUVM Date: Tue, 04 Oct 2005 13:46:37 GMT Xref: g2news1.google.com comp.lang.ada:5373 Date: 2005-10-04T13:46:37+00:00 List-Id: "Dmitry A. Kazakov" wrote in message news:1x4pe4pv41qsn$.m5c5jawjqcpq.dlg@40tude.net... > On Tue, 04 Oct 2005 05:24:17 GMT, adaworks@sbcglobal.net wrote: > > > > Also, I am teaching a class in functional programming languages this Quarter > > and wrote a little factorial program in Scheme that shows that we can do > > > > (factorial 45) > > > > and get a perfectly good answer. Anyone know of an Ada package that > > can do that? > I apologize. I did not mean to imply that BCD is the only way to do 45! There are better implementations possible. The point was that this is not something one can do with the present implementations of Ada. Every compiler I know of is limited by the word size of the platform. Smalltalk, Lisp, Scheme, and lots of other languages are at a level of abstraction better suited to the representation of problems involving large numbers. > > But I agree that Ada should have Universal_Integer or its equivalent > available for users. And this time one should not repeat errors made with > Unbounded_String! > We are in agreement on this. It can be done with a home-grown package, but having implemented a partial version of it, I can say it is not a trivial thing to do in Ada. > Richard Riehle