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,ffc9e2fe760c58fd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news-xxxfer.readnews.com!198.186.190.250.MISMATCH!transit3.readnews.com!news-out.readnews.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!nntp.abs.net!news.abs.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Records that could be arrays References: From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:AyyZXdAK6jxKKcS1Dy+OZnNaqeQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Feb 2006 08:08:46 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1140700134 66.159.65.1 (Thu, 23 Feb 2006 08:08:54 EST) NNTP-Posting-Date: Thu, 23 Feb 2006 08:08:54 EST Xref: g2news1.google.com comp.lang.ada:3101 Date: 2006-02-23T08:08:46-05:00 List-Id: Wilhelm Spickermann writes: > Hi, > > Justin Gombos wrote: > >> I have set a rule for myself: Composite types composed solely >> of one type of element should be declared as arrays rather than >> records. > ... >> Thoughts? > > I think it depends on the meaning of "type". The three floating > point numbers in a polar coordinate system are of three > different _kinds_ and should be put into a record and not into > an array -- even if they have the same _type_. I don't think that follows; the names indicate the kind. The names are the same whether it's an array (the index name) or a record (the component name). Following Randy's suggestion, it might make sense to use different types for the three different polar coordinates. But I would not go that far. -- -- Stephe