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
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.