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!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Easy question about Character manipulation Date: Tue, 30 Jan 2007 15:24:45 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1170100860.762334.13830@l53g2000cwa.googlegroups.com> <45bf39fd$1@news.post.ch> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1170188687 791 192.74.137.71 (30 Jan 2007 20:24:47 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 30 Jan 2007 20:24:47 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:1KYamQvscHWj9pQQ/fpndeQqQXM= Xref: g2news2.google.com comp.lang.ada:8737 Date: 2007-01-30T15:24:45-05:00 List-Id: "Jeffrey R. Carter" writes: > Martin Krischik wrote: >> It has been suggested before so let me emphasis: use >> size: Integer := 10; > > 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. And then we have: > emptySpaces : array (1..size) of Character := "0123456789"; > textLine : array (1..size * 3) of Character; If Size is a named number, the index type of these arrays defaults to Integer -- another language kludge. Of course, the original poster wanted plain old "String", so all this is irrelevant to that question. - Bob