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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d8c487e59f13ecdf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-09 10:44:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!208.49.253.98!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!cyclone.swbell.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3DA46AE0.2D996D39@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Basics References: <3DA45046.F5C66738@raytheon.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Wed, 09 Oct 2002 12:44:00 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1034185461 151.168.144.162 (Wed, 09 Oct 2002 13:44:21 EDT) NNTP-Posting-Date: Wed, 09 Oct 2002 13:44:21 EDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:29630 Date: 2002-10-09T12:44:00-05:00 List-Id: Jerry Petrey wrote: > In the example you cited, there would be little difference since all integer > types > are derived types - type one_to_hundred is range 1..100 creates a derived > type but the compiler chooses which predefined integer type to derive from (it > might for > example, choose short_integer). > With one_to_hundred is new Integer range 1..100 , you are explicitly choosing > > the parent type to be the predefined type Integer. The implementation (size, for example) is also inherited. Which is why one might choose a particular parent. But also, by making a derived type instead of a (plain) new type, you may be sending a message to future readers that the parent type specifically has operations that are important to the derived type. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau