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, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!peernews3.colt.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: Wed, 15 Sep 2004 12:14:31 +0200 Organization: AdaCL Message-ID: <1782038.ine8gsgUCE@linux1.krischik.com> References: <49dc98cf.0408110556.18ae7df@posting.google.com> <17sx057ro5jw5$.t2qlaeoxg611$.dlg@40tude.net> <1095082522.132276@master.nyc.kbcfp.com> <18ym85v67zof3$.7oqswzjfgswr.dlg@40tude.net> <1095090665.624419@master.nyc.kbcfp.com> <68zmgy3b894u.rs67cy6jjfiq$.dlg@40tude.net> <11tjdpsch74g0.158lc7jpe3vz5$.dlg@40tude.net> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1095250636 00 21659 4dufXpKLLYSUt6D 040915 12:17:16 X-Complaints-To: usenet-abuse@t-online.de X-ID: SftQysZLZeV1bwXoi1mgF8x1hQGw98aaC+5qxDXwpC8cdON3PYkDkD User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:3753 Date: 2004-09-15T12:14:31+02:00 List-Id: Dmitry A. Kazakov wrote: > Should it be generic, parametrized by a > string type. Which is BTW impossible too, because even at the level of > generics the least common ancestor of all Ada string types is "type Duno > is private"; I think you have not worked enough with generics. generic type Character_Type is (<>); type String_Type is array (Positive range <>) of Character_Type; package Some_Generic_String_Operations But there is a problem of course: Unbounded_String is not a generic instantiation. It really should have been: package Unbounded_String is new Generic_Unbounded_String ( Character_Type => Character, String_Type => String); package Wide_Unbounded_String is new Generic_Unbounded_String ( Character_Type => Wide_Character, String_Type => Wide_String); And sadly it is to late for that. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com