From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: meaning of "current instance"
Date: 1999/11/13
Date: 1999-11-13T00:00:00+00:00 [thread overview]
Message-ID: <382e2e08_2@news1.prserv.net> (raw)
In-Reply-To: zaoX3.10259$dp.270354@typhoon-sf.snfc21.pbi.net
In article <zaoX3.10259$dp.270354@typhoon-sf.snfc21.pbi.net> ,
tmoran@bix.com wrote:
> Is there anything you can do with "current instance" that couldn't
> be done (and perhaps more safely) with Initialize on a Controlled type?
> I grant that ":=T'access;" is simpler, but it could be done with
> Initialize.
My original motivation for using
type RT is
tagged limited record
I : Integer := Init (RT'Access);
end record;
instead of
type RT is
new Limited_Controlled with record
I : Integer;
end record;
procedure Initialize (O : in out RT);
was precisely to avoid having to use a controlled type. Controlled
types are in general less efficient than non-controlled types.
--
Get the FAQs about evolution and creationism.
<http://www.talkorigins.org/origins/faqs.html>
next prev 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 ` 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
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 [this message]
1999-11-15 0:00 ` John English
1999-11-15 0:00 ` 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox