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

ok@cs.rmit.edu.au (Richard A. O'Keefe)
Wed, 16 Aug 1995 13:04:54 GMT

          From comp.compilers

Related articles
[22 earlier articles]
Re: Order of argument evaluation in C++, etc. chase@centerline.com (1995-08-11)
Re: Order of argument evaluation in C++, etc. eggert@twinsun.com (1995-08-13)
Re: Order of argument evaluation in C++, etc. rfg@rahul.net (Ronald F. Guilmette) (1995-08-14)
Re: Order of argument evaluation in C++, etc. graham.matthews@pell.anu.edu.au (1995-08-16)
Re: Order of argument evaluation in C++, etc. bobduff@world.std.com (1995-08-16)
Re: Order of argument evaluation in C++, etc. sethml@sloth.ugcs.caltech.edu (1995-08-16)
Re: Order of argument evaluation in C++, etc. ok@cs.rmit.edu.au (1995-08-16)
Re: Order of argument evaluation in C++, etc. msb@sq.com (1995-08-18)
Re: Order of argument evaluation in C++, etc. ka@socrates.hr.att.com (1995-08-19)
Re: Order of argument evaluation in C++, etc. hbaker@netcom.com (1995-08-21)
Re: Order of argument evaluation in C++, etc. chase@centerline.com (1995-08-21)
Re: Order of argument evaluation in C++, etc. chase@centerline.com (1995-08-21)
Re: Order of argument evaluation in C++, etc. bobduff@world.std.com (1995-08-21)
[14 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: ok@cs.rmit.edu.au (Richard A. O'Keefe)
Keywords: C++, optimize, Ada, design
Organization: Comp Sci, RMIT, Melbourne, Australia
References: 95-08-067 95-08-089
Date: Wed, 16 Aug 1995 13:04:54 GMT

Concerning order-of-evaluation issues,
this is one of the issues discussed in the documents from the
Ada "Language Precision Team", in the first report if I remember
correctly.


One of the things that was done for Ada 95 was to _loosen up_ the order
of evaluation requirements in response to strong pressure. One of the
issues was that Ada previously had requirements on just where exceptions
had to be signalled that were strong enough to interfere with optimisation
but not quite as strong as some people in this discussion would like.
The LPT report identifies several levels of control over evaluation order,
and as I said the Ada 95 standard gives a lot more freedom to implementors
so that they can cope with out-of-order or imprecise exceptions.


Since C++ has exception handling, this is or will be an issue for C++ too.


The relevant reports are freely available over the net.
--
Richard A. O'Keefe; http://www.cs.rmit.edu.au/~ok; RMIT Comp.Sci.
--


Post a followup to this message

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