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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!eu.feeder.erje.net!feeder.erje.net!us.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Bug or feature? Date: Wed, 14 May 2014 17:42:55 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <50562e0a-3dfa-44c4-9aaa-70cbe304b54b@googlegroups.com> <40c7405d-c4c2-4163-a430-01052b769866@googlegroups.com> <049c868a-e930-4e5d-a96a-611542cd1ce6@googlegroups.com> <224148c3-2a31-4f3e-a3a3-0a588773798b@googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1400103773 28395 192.74.137.71 (14 May 2014 21:42:53 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 14 May 2014 21:42:53 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:mR/PY7f6ehvDTR2Nb6HaW2tDstk= Xref: news.eternal-september.org comp.lang.ada:19832 Date: 2014-05-14T17:42:55-04:00 List-Id: Laurent writes: > This one I didn't see: 5*2_000_000_000 = 1_410_065_408 > So there is also an overflow. Didn't count the digits before. (Is there a way to add '_' to separate > the thousands automatically in GPS?) I don't know, but recent versions of gnatpp have that capability. I don't like having to squint to tell the difference between (say) "one million" and "ten million". I wonder why most languages don't support that feature -- it's trivial. > Checked the Stack Overflow check (-gnato) ... It's not "stack overflow" -- that has to do with overflowing the call stack. I think you also called it "buffer overflow", which actually means array index out of bounds. -gnato turns on checks for "integer overflow". I believe -gnato will be the default soon, if it's not already. - Bob