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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3404439c05a9ac3 X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Generic package array parameter Date: 1999/11/23 Message-ID: <383ab0f9_4@news1.prserv.net>#1/1 X-Deja-AN: 552083118 Content-transfer-encoding: 7bit References: Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 23 Nov 1999 15:21:29 GMT, 32.101.8.36 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-23T00:00:00+00:00 List-Id: In article , Mario Amado Alves wrote: > (Heaney, perhaps sometime I take the trouble to comment back and show the > world I am not that stupid.;-) Many things may at first seem "stupid and ugly," but on closer inspection it turns out that there is usually a good reason for things being that way. I myself made a mistake very similar to yours (although it was many years ago ;^), like this: type RT (D : Positive) is record Items : array (1 .. D) of Item_Type; end record; This of course is not legal Ada, and my initial reaction was probably very similar to yours wrt the syntax of generic formal array objects. In the end, the only way to learn a language is by programming in that language. -- Science is, foremost, a method of interrogating reality: proposing hypotheses that seem true and then testing them -- trying, almost perversely, to negate them, elevating only the handful that survive to the status of a theory. Creationism is a doctrine, whose adherents are interested only in seeking out data that support it. George Johnson, NY Times, 15 Aug 1999