From: nobody@REPLAY.COM (Anonymous)
Subject: Re: private type discriminants ignored?
Date: 1998/04/30
Date: 1998-04-30T00:00:00+00:00 [thread overview]
Message-ID: <199804301352.PAA20159@basement.replay.com> (raw)
In-Reply-To: rz84szje1ol.fsf@cs.williams.edu
<35460201.ED1315C4@hso.link.com> <354612AF.41C6@hso.link.com>
<35468F93.C371940@hso.link.com>
On Wed, 29 Apr 1998 22:30:08 GMT, robertduff@world.std.com (Robert A
Duff) wrote:
> ...
> For such variables a compiler will either allocate the max size, or use
> the heap implicitly to grow and shrink the thing behind the scenes. I
> prefer the former implementation in a fairly low-level, machine-oriented
> language like Ada. On the other hand, the deallocate/reallocate scheme
> gives useful flexibility. On the third hand, the first compiler I used
-- third hand!
> that tried that scheme had a bug -- if you renamed a component of such a
> record, the compiler would store the address of the renamed component,
> but then when the discriminant changed, the whole record would move, and
> the renaming would be a dangling pointer. I believe at least one other
> compiler did it right, by doing the dealloc/realloc thing on just the
> parts that change size depending on the discrim (and you're not allowed
> to rename those components).
>
> ...
Now we know the truth: Robert A. Duff is a Motie!
Jeff Carter PGP:1024/440FBE21
My real e-mail address: ( carter @ innocon . com )
"You empty-headed animal-food-trough wiper."
Monty Python & the Holy Grail
Posted with Spam Hater - see
http://www.compulink.co.uk/~net-services/spam/
next prev parent reply other threads:[~1998-04-30 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Es7569.4n2@world.std.com>
1998-04-24 0:00 ` private type discriminants ignored? Jay Sachs
1998-04-24 0:00 ` Joel VanLaven
[not found] ` <Es3A4J.Ion@world.std.com>
1998-04-28 0:00 ` Samuel T. Harris
1998-04-28 0:00 ` Patrick D. Rogers
1998-04-28 0:00 ` Samuel T. Harris
1998-04-30 0:00 ` Anonymous [this message]
[not found] ` <6ib6t4$63f$1@goanna.cs.rmit.edu.au>
1998-05-06 0:00 ` Robert I. Eachus
1998-05-01 0:00 ` Samuel T. Harris
[not found] <matthew_heaney-ya023680003004981720560001@news.ni.net>
1998-05-01 0:00 ` Anonymous
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox