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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7936408ed8296efa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-18 18:35:13 PST Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3ADE40C8.BADBA9C2@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: User define attributes References: <3ADDFE24.9B3E1038@gsde.hou.us.ray.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 19 Apr 2001 01:35:13 GMT NNTP-Posting-Host: 63.180.2.206 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 987644113 63.180.2.206 (Wed, 18 Apr 2001 18:35:13 PDT) NNTP-Posting-Date: Wed, 18 Apr 2001 18:35:13 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Wed, 18 Apr 2001 18:33:53 PDT (newsmaster1.prod.itd.earthlink.net) Xref: supernews.google.com comp.lang.ada:6988 Date: 2001-04-19T01:35:13+00:00 List-Id: "Samuel T. Harris" wrote: > > generic > type Index_Type is (<>); > type Component_Type is private; > type Array_Type is array (Index_Type range <>) of Component_Type; > with function Width (Item : Index_Type) return Natural is <>; > with function Image (Item : Index_Type) return String is <>; > with function Value (Item : String) return Index_Type is <>; Note that since Index_Type is a discrete type, the generic can call Index_Type'Image, Index_Type'Value, and so on directly. -- Jeff Carter "You couldn't catch clap in a brothel, silly English K...niggets." Monty Python & the Holy Grail