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-18 12:10:04 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: status of Ada STL? Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Tue, 18 Jun 2002 19:09:07 GMT References: <3d0ce154_5@news.bluewin.ch> Pascal Obry writes: > Robert A Duff writes: > > > "chris.danx" writes: > > > > > I'm not going to argue with you (you've made up your mind and so have I, > > > what's the point?), I'm just curious as to whether compilers would see A := > > > A / 2 and think "that code's dividing the matrix by 2 and assigning it to > > > itself. It might be better just to divide it inplace" leading to the same > > > thing. But then I'm largely ignorant of compilers. > > > > I don't think any Ada compilers are that smart. > > Ok, but that is a compiler issue, I don't see why it should not be possible > and it is not a language issue. It *is* a language issue. It would be possible to design a language in which the above optimization were trivial. I'm not saying that's a good idea, just that the language design has a large influence on what optimizations are feasible. - Bob