comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Parameter evaluation order
Date: 1998/04/09
Date: 1998-04-09T00:00:00+00:00	[thread overview]
Message-ID: <dewar.892128071@merv> (raw)
In-Reply-To: Er3o6w.54C@array.ca


Glenden said

<<Your compiler is probably optimizing it somehow.  Why don't you just break
it down into several lines?  It'd be easier to maintain for the next person
that looks at your code also.
>>

This is misleading. This has nothing to do with optimization, The order
of parameter evaluation is non-deterministic, the program worked exactly
as it should, it was just that the programmer had some incorrect expectation
based on a misunderstanding of Ada semantics.





  reply	other threads:[~1998-04-09  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-05  0:00 Parameter evaluation order Mark.Rutten
1998-04-05  0:00 ` Matthew Heaney
1998-04-07  0:00   ` Don Harrison
1998-04-09  0:00   ` Simon Wright
1998-04-10  0:00     ` Matthew Heaney
1998-04-10  0:00       ` Simon Wright
1998-04-11  0:00         ` Robert Dewar
1998-04-06  0:00 ` Corey Ashford
1998-04-06  0:00 ` William D. Ghrist
1998-04-08  0:00 ` Glenden Lee
1998-04-09  0:00   ` Robert Dewar [this message]
     [not found]     ` <Er5Ir9.5Ip@world.std.com>
1998-04-09  0:00       ` Peter Amey
1998-04-09  0:00       ` Tucker Taft
1998-04-16  0:00         ` Nick Roberts
1998-04-17  0:00           ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox