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,FREEMAIL_FROM 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.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 23 Nov 2005 21:19:51 -0600 From: "Steve" Newsgroups: comp.lang.ada References: <1653090.31FM62oI6I@linux1.krischik.com> Subject: Silly question about strings (was: Filenames in Ada) Date: Wed, 23 Nov 2005 19:21:00 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 24.20.111.245 X-Trace: sv3-vfx7VJrlXFeSvofzV5ZXfGjlvGoq/tcfPzZiibrJtkAJf3qvt9+7gXEXitDaU4cPwz/hCr2Hy3jMvRv!UG3422LjZcABjJJmQaUcARLz4lX5gQGLWkV3ZoKTWYvUADDtDKwMq4g/tRXAf1me8PV22lrjYfJN!wmaZFnvpZ7sAXw== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.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:6572 Date: 2005-11-23T19:21:00-08:00 List-Id: This may be a silly question, but why aren't the character dependent packages generic? It seems odd to have separate packages: Ada.Strings.Fixed; Ada.Strings.Wide_Fixed; Ada.Strings.Bounded; Ada.Strings.Wide_Bounded; Ada.Strings.Unbounded; Ada.Strings.Wide_Unbounded; Ada.Text_IO; Ada.Wide_Text_IO; Instead of generic packages that use the character type as a parameter, with predefined instatiations for character and wide_character similar to what is done with numerics. Perhaps something along the lines of: package Ada.Strings.Fixed is new Ada.Strings.String_Base( Character ); package Ada.Strings.Wide_Fixed is new Ada.Strings.String_Base( Wide_Character ); and so on... It seems like this would eliminate issues with different character sets, and avoid the need for a language revision when a 64 bit (or 128 bit) version of Unicode arrives. Steve (The Duck)