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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f51e93dacd9c7fca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-19 01:10:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!opentransit.net!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: status of Ada STL? Date: 19 Jun 2002 10:09:57 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: <3d0ce154_5@news.bluewin.ch> NNTP-Posting-Host: avelizy-103-1-2-90.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 1024474206 21319 217.128.15.90 (19 Jun 2002 08:10:06 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 19 Jun 2002 08:10:06 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 Xref: archiver1.google.com comp.lang.ada:26362 Date: 2002-06-19T08:10:06+00:00 List-Id: Robert A Duff writes: > It *is* a language issue. It would be possible to design a language in Yes I got it now. A := A + 1 <- do the addition, copy back to A is not equivalent to A += 1 <- in-place addition I have never thought about that :( Now, a compiler can trivially optimize this if A is a scalar. In the case of complex types (like matrix) it is quite harder as the compiler must be sure that each value in A will be use only once. For matrix this is fine for += and -= only though... Anyway I agree that this is a notation that help compiler optimize the code. I still think that this should not be added to Ada. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595