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,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-03 06:16:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!news01.chello.no!dax.net!juliett.dax.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED41344.7090105@spam.com> <3ED46D81.FF62C34F@0.0> <3ED46E07.4340CABC@0.0> <3ED4F3FD.A0EF7079@alfred-hilscher.de> <6vWcnTWjF83bD0qjXTWcpA@gbronline.com> From: Ole-Hjalmar Kristensen Message-ID: <7v7k835mki.fsf@vlinux.voxelvision.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Jun 2003 13:15:42 GMT NNTP-Posting-Host: 193.216.12.150 X-Complaints-To: abuse@tele2.no X-Trace: juliett.dax.net 1054646142 193.216.12.150 (Tue, 03 Jun 2003 15:15:42 MET DST) NNTP-Posting-Date: Tue, 03 Jun 2003 15:15:42 MET DST Organization: Tele2 Norway AS Public Access X-Received-Date: Tue, 03 Jun 2003 15:16:17 MET DST (news01.chello.no) Xref: archiver1.google.com comp.lang.ada:38467 Date: 2003-06-03T13:15:42+00:00 List-Id: Preben Randhol writes: > Lutz Donnerhacke wrote: > > > > Yes, that's the Ada way. But for a lot of simple functions over simple data > > types, defining such procedures is a pain. > > But if the data types are simple do you really need the optimisation? > If the data types are simple, I would expect the optimizer to eliminate the unneded copies. > If you are adding two matrixes you need to do a lot of other things > like check if they are of same dimentions etc. and you need to define > the addition so you might as well do it as a procedure over a "+" > function. > > -- > Preben Randhol http://www.pvv.org/~randhol/ -- Ole-Hj. Kristensen ****************************************************************************** * You cannot consistently believe this sentence. ******************************************************************************