comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: meaning of "current instance"
Date: 1999/11/13
Date: 1999-11-13T00:00:00+00:00	[thread overview]
Message-ID: <wccd7te2ffm.fsf@world.std.com> (raw)
In-Reply-To: 382c0d0f_1@news1.prserv.net

"Matthew Heaney" <matthew_heaney@acm.org> writes:

> 
> In article <2hNW3.1742$dp.68215@typhoon-sf.snfc21.pbi.net> , 
> tmoran@bix.com  wrote:
> 
> >>I don't think your program will even compile.
> > Sorry, I tried to simplify more than was possible.
> > This prints "1 1", as seems nice, but unexpected, with one compiler,
> > but "5832148 1" with another compiler.  If X.J in function Init
> > is replaced by X.I, then the two compilers give
> > "39190036 1" and "0 1" respectively.

I think record components can be initialized in an arbitrary order (ie
whatever order the compiler chooses).  So if the init of one component
refers to the value of another, you might be referring to an
uninitialized variable, which is a bounded error -- no matter which
order you declare the components.

- Bob




  parent reply	other threads:[~1999-11-13  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-11  0:00 meaning of "current instance" Matthew Heaney
1999-11-11  0:00 ` Robert A Duff
1999-11-11  0:00   ` Matthew Heaney
1999-11-11  0:00     ` Tucker Taft
1999-11-15  0:00   ` Tucker Taft
1999-11-15  0:00     ` tmoran
1999-11-15  0:00       ` Tucker Taft
1999-11-11  0:00 ` tmoran
1999-11-11  0:00   ` Matthew Heaney
1999-11-12  0:00     ` tmoran
1999-11-11  0:00       ` Matthew Heaney
1999-11-12  0:00         ` tmoran
1999-11-12  0:00           ` Matthew Heaney
1999-11-12  0:00             ` tmoran
1999-11-12  0:00               ` Matthew Heaney
1999-11-13  0:00             ` Robert A Duff [this message]
1999-11-13  0:00           ` Nick Roberts
1999-11-13  0:00             ` Robert A Duff
1999-11-14  0:00               ` tmoran
1999-11-13  0:00                 ` Matthew Heaney
1999-11-15  0:00                   ` John English
1999-11-15  0:00                     ` Matthew Heaney
replies disabled

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