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,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: 16 Sep 2004 20:43:41 +0200 Organization: Home - http://www.obry.org Message-ID: References: <49dc98cf.0408110556.18ae7df@posting.google.com> <413e2fbd$0$30586$626a14ce@news.free.fr> <2cR0d.1623$IO5.1267@trndny04> <17sx057ro5jw5$.t2qlaeoxg611$.dlg@40tude.net> <1095082522.132276@master.nyc.kbcfp.com> <18ym85v67zof3$.7oqswzjfgswr.dlg@40tude.net> <1095090665.624419@master.nyc.kbcfp.com> <68zmgy3b894u.rs67cy6jjfiq$.dlg@40tude.net> NNTP-Posting-Host: avelizy-151-2-2-52.w82-120.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news-reader4.wanadoo.fr 1095360221 11657 82.120.30.52 (16 Sep 2004 18:43:41 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 16 Sep 2004 18:43:41 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: g2news1.google.com comp.lang.ada:3781 Date: 2004-09-16T18:43:41+00:00 List-Id: "Dmitry A. Kazakov" writes: > > But of course this would be : > > > > function "+" (Str : in String) > > return Unbounded_String > > renames To_Unbounded_String; > > > > X : constant Ragged := (+"1", +"12", +"13"); > > > > I did not say that it is perfect, but yet far better than your example :) > > It is disgusting! (:-)) I know there is a smiley :) But nevertheless... > What goal this "solution" achieves? To save keystrokes? No not only. In this case it makes the code easier to read IMHO. I have (and found this in other piece of code too) often used: function "+" (Str : in String) return Unbounded_String renames To_Unbounded_String; function "-" (Str : in Unbounded_String) return String renames To_String; > Is it Ada or C++? (:-)) Renamings ? Ada definitly :) Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595