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,bde6706c124e6eed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Tue, 29 Nov 2005 15:44:08 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <-N-dnbfOUufqWhbeRVn-sQ@megapath.net> <1MadnQhFHPh0cRbenZ2dnUVZ_smdnZ2d@comcast.com> Subject: Re: Silly question about strings (was: Filenames in Ada) Date: Tue, 29 Nov 2005 15:48:14 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: <94CdnT6ZBJc1VhHenZ2dnUVZ_tSdnZ2d@megapath.net> NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-AFlYm9t6UUNs0uSvddz3xZj0D+v93MKA2nqbQHkdsChRifLanbYvBcD/Uov5l6yQjgMwuWEo1Lbr3Lu!zqF1afh/Sc/JZFo/f4Rdejg4csxvvVNBPlyF413/6FCM1sW9Me0fejYj+mFFBKFIUzSrHjDb9qEg!GNn/lov8juBo+g== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6668 Date: 2005-11-29T15:48:14-06:00 List-Id: wrote in message news:1MadnQhFHPh0cRbenZ2dnUVZ_smdnZ2d@comcast.com... > >> package Ada.Strings.Fixed is new Ada.Strings.String_Base( Character ); > >... > >Something like this was proposed as an 11th hour suggestion (this year). > Since the generic type parameter is merely any discrete type, presumably > you would support (with appropriate OS calls where needed): > package Ada.Strings.Colors is new Ada.Strings.String_Base(Colors); > package Ada.Strings.Unbounded_Integers > is new Ada.Strings.Unbounded_String_Base(Integer): Right. And there was some objection to that, given the overlap with the containers library. (How would you decide to use an unbounded array of integers or an vector of integers? They have similar sets of operations.) Randy.