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 Newsgroups: comp.lang.ada Subject: Re: Silly question about strings References: <1653090.31FM62oI6I@linux1.krischik.com> <438582ab_1@glkas0286.greenlnk.net> From: Brian May Date: Thu, 24 Nov 2005 22:30:40 +1100 Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:nLbw3QLs3av8P4dBCE7XnjZn1yE= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: news.melbourne.pipenetworks.com 1132831840 202.173.153.89 (24 Nov 2005 21:30:40 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!snewsf0.syd.ops.aspac.uu.net!news.netspace.net.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:6583 Date: 2005-11-24T22:30:40+11:00 List-Id: >>>>> "Martin" == Martin Dowie writes: Martin> They could always be 'defined' as proposed by Steve but Martin> the implementation might use 'magic' to make it happen. ... and if this magic meant you could do: package Ada.Strings.UTF8 is new Ada.Strings.String_Base( UTF8 ); I think everybody would be happy ;-). Or is that too much magic? Unfortunately, Steve's proposal didn't take into account Fixed length vs Unbounded types. Not sure if that could be done with an additional parameter to String_Base, or if duplicating String_Base would be the ideal solution. -- Brian May