Re: Order of argument evaluation in C++, etc.

davids@ICSI.Berkeley.EDU (David Petrie Stoutamire)
Sun, 30 Jul 1995 22:07:20 GMT

          From comp.compilers

Related articles
[5 earlier articles]
Re: Order of argument evaluation in C++, etc. dmk@dmk.com (1995-07-21)
Re: Order of argument evaluation in C++, etc. jhallen@world.std.com (1995-07-21)
Re: Order of argument evaluation in C++, etc. hbaker@netcom.com (1995-07-26)
Re: Order of argument evaluation in C++, etc. karlcz@moraine.hip.berkeley.edu (1995-07-26)
Re: Order of argument evaluation in C++, etc. Steve_Kilbane@cegelecproj.co.uk (1995-07-26)
Re: Order of argument evaluation in C++, etc. chase@centerline.com (1995-07-28)
Re: Order of argument evaluation in C++, etc. davids@ICSI.Berkeley.EDU (1995-07-30)
Re: Order of argument evaluation in C++, etc. dave@occl-cam.demon.co.uk (Dave Lloyd) (1995-07-31)
Re: Order of argument evaluation in C++, etc. jthill@netcom.com (1995-08-03)
Re: Order of argument evaluation in C++, etc. chase@centerline.com (1995-08-07)
Re: Order of argument evaluation in C++, etc. hbaker@netcom.com (1995-08-08)
Re: Order of argument evaluation in C++, etc. graham.matthews@pell.anu.edu.au (1995-08-08)
Re: Order of argument evaluation in C++, etc. det@sw.stratus.com (David Toland) (1995-08-08)
[31 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: davids@ICSI.Berkeley.EDU (David Petrie Stoutamire)
Keywords: C++, optimize, design
Organization: International Computer Science Institute, Berkeley, CA, U.S.A.
References: 95-07-068 95-07-157
Date: Sun, 30 Jul 1995 22:07:20 GMT

Steve_Kilbane <Steve_Kilbane@cegelecproj.co.uk> wrote:
>Henry Baker <hbaker@netcom.com> wrote:
>>For the rest of the time, I think that the vast majority of C++ programmers
>>would sleep much better if the order of evaluation were nailed down as some
>>depth first ordering of the expression, thus allowing a simple LIFO
>>allocation of the (caller's) temporaries.
>
>Well, *I'd* be happier if the execution order was nailed down somehow.
>It doesn't matter how fast the code is that your compiler generates, if
>no-one understands the language intricacies well enough to write code
>that'll actually work.


Sather has defined left-to-right order of argument evaluation since day
one, and we've taken a lot of kneejerk flak for it. We've also
received a lot of support, and I'm personally convinced it was the
right decision, for all the reasons mentioned so far in this thread.
I've seen this issue raise religious hairs every time it comes up.


        - Dave
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.