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,640b65cbfbab7216 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Ada.Strings.Bounded Date: Mon, 07 Apr 2008 18:34:17 +0100 Message-ID: References: <47F26C46.3010607@obry.net> <44d88b93-6a90-4c18-8785-2164934ba700@a9g2000prl.googlegroups.com> <47F652F7.9050502@obry.net> <47f7028d$1_6@news.bluewin.ch> <47F749CB.30806@obry.net> <47f7644d_2@news.bluewin.ch> <47F76D31.2090009@obry.net> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net osOnzJjnK4jx7Rg6rhkt9g1PXIXmttSFw8HOWvhn05vJdRhs1w Cancel-Lock: sha1:Apuf/BssrJLGmFmjuwrvA3moLM8= User-Agent: Microsoft-Entourage/12.1.0.080305 Thread-Topic: Ada.Strings.Bounded Thread-Index: AciY1ZqkmOnRfh9s6UWL50SMooGUVQ== Xref: g2news1.google.com comp.lang.ada:20870 Date: 2008-04-07T18:34:17+01:00 List-Id: On 07/04/2008 17:34, in article Pine.LNX.4.64.0804071812200.15920@medsec1.medien.uni-weimar.de, "stefan-lucks@see-the.signature" wrote: >>> The only useful use for "+" in Ada is for conversions. >> >> OK, so that's not much of a use. On the other hand, the idea that "+" >> represents the identity function is ingrained enough in me that I've >> resisted using it for a conversion operator even though others around >> me have been doing that. Call it an obstinate adherence to >> meaningless purity or whatever. But like Randy, I would have >> preferred adding one (maybe even two) operator symbols that would have >> no meaning except that the user could define them, although I'm not >> sure about "#" since that already has a use (in based numeric >> literals). I'd prefer something not currently used at all, like "@" >> or "!" or tilde. Of course, it apparently isn't going to happen >> anyway so there's not much point arguing about which character would >> be best. > > Two natural candidates which come into my mind would be an unary '&' and > the '%'-sign: > > '%' (percent) indicates some kind of conversion anyway (though usually > in postfix notation, not as a prefix, "75 %" for 75/100). Potential problems there with string literals (see RM: J.2 Allowed Replacements of Characters)? -- Bill Findlay chez blueyonder.co.uk