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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1dd28d5040ded1f8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-09 16:27:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!demon!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Announce: Grace project site operational Date: Thu, 9 May 2002 09:32:48 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CD88FBD.4070706@telepath.com> <3CD91E31.1060004@telepath.com> <3CD94E63.3050607@mail.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1020951170 14851 136.170.200.133 (9 May 2002 13:32:50 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 9 May 2002 13:32:50 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:23808 Date: 2002-05-09T13:32:50+00:00 List-Id: The only way I know of doing it is: "type Some_Type is range <> ;" It sure would be handy to be able to say "Unless otherwise directed, make it Natural..." in which case there is no problem. You get Natural unless you need it to be something else. (Actually, I'd like to be able to have generic parameters that let you imply that the actual was going to be ordinal or scalar so you could assume it would have relational operators or mathematical operators and thus not have to bring in all the operators or have separate packages for things like floating point, fixed point, decimal, integer, modular, enumerated... But that's another complaint. :-) My reason for not wanting to parameterize that aspect is that you then have to ask "Where do we stop?" Couldn't there be all sorts of other aspects of the package that might possibly benefit from having special types? Maybe not with lists, but then you've got maps and whatever else comes along next. Once you let the toothpaste out of the tube, its awful hard to get it back in. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Larry Kilgallen" wrote in message news:w1dYrjaH4ynM@eisner.encompasserve.org... > > Is there no way a generic type parameter can have a default value ?