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,640b65cbfbab7216 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Ada.Strings.Bounded Date: Mon, 7 Apr 2008 18:34:54 +0200 Organization: Bauhaus-Universitaet Weimar 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> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: tigger.scc.uni-weimar.de 1207586543 24486 141.54.178.228 (7 Apr 2008 16:42:23 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Mon, 7 Apr 2008 16:42:23 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Xref: g2news1.google.com comp.lang.ada:20868 Date: 2008-04-07T18:34:54+02:00 List-Id: > > 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). '&' is something you can even now use for conversion into strings and the like: declare an appropriate function function "&" (X: String; Y: Some_Type) return String; and then just write "" & A; wherever you need A being converted into a string. A unary "&" would be handy -- prepending the empty string clearly is artificial. So long Stefan -- ------ Stefan Lucks -- Bauhaus-University Weimar -- Germany ------ Stefan dot Lucks at uni minus weimar dot de ------ I love the taste of Cryptanalysis in the morning! ------