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,7b5b3c67aa2a73fe X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Easy question about Character manipulation Date: Wed, 31 Jan 2007 12:22:37 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <45c07bfd$1@news.post.ch> References: <1170100860.762334.13830@l53g2000cwa.googlegroups.com> <45bf39fd$1@news.post.ch> <1w9na0flf7izk.10870qhe6k9rg$.dlg@40tude.net> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1170242561 5566 194.41.146.1 (31 Jan 2007 11:22:41 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Wed, 31 Jan 2007 11:22:41 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 31 Jan 2007 12:22:37 +0200, w01iwt.pnet.ch Xref: g2news2.google.com comp.lang.ada:8767 Date: 2007-01-31T12:22:37+01:00 List-Id: Robert A Duff schrieb: > "Dmitry A. Kazakov" writes: > >> On Tue, 30 Jan 2007 15:24:45 -0500, Robert A Duff wrote: >> >>> "Jeffrey R. Carter" writes: >>> >>>> Let me emphasize: >>>> >>>> Size : constant := 10; >>>> >>>> There's no reason for Size to be an object, much less a variable. >>> I agree that it should probably be constant, but why not give it a type, >>> as in: >>> >>> Size : constant Integer := 10; >>> >>> I think named numbers are a kludge, and should usually be avoided. >> I would agree if Universal_Integer were a proper type name. Integer tells >> too much. > > Well, Universal_Integer is just Root_Integer'Class. But I agree, they > should have names. Actually, the name for Root_Integer should be > Integer. You are aware that this would mean Integer'Size=64 for GNAT? > And the name for Standard.Integer should be > Not_Standard_At_All.Machine_Integer. ;-) Don't forget Standard.String_Index - or do you thing that a 64 bit string index has it's uses? Martin