From: Geert Bosch <geert@gonzo.sun3.iaf.nl>
Subject: Re: limited/non-limited in Ada95
Date: 1997/10/24
Date: 1997-10-24T00:00:00+00:00 [thread overview]
Message-ID: <62plj2$aj8$1@gonzo.sun3.iaf.nl> (raw)
In-Reply-To: ufra9cmdqq.fsf@synquiry.com
Jon S Anthony <jsa@synquiry.com> wrote:
It largely is a matter of _opinion_. Wrapping non structured
information _just to solve a mechanism problem_ in a structure is IMO
a misleading and inappropriate use of that sort of abstraction and the
supporting construct. It's a _hack_ as it has _nothing_ to do with
what you are trying to represent. Period.
You can also include a component of a volatile type to the structure
you want to pass by reference. This way you avoid an extra layer of
wrapping. The extra component could be declared as
type Volatile_Type is null record;
pragma Volatile (Volatile_Type);
type My_Ref_Passed_Type is record
Force_By_Reference : Volatile_Type;
...
end record;
I really do not understand how you can find this to be an ugly hack
to force by-reference semantics that limits the possibilities of
implementing a garbage collector.
Regards,
Geert
next prev parent reply other threads:[~1997-10-24 0:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-13 0:00 limited/non-limited in Ada95 Tom Moran
1997-10-16 0:00 ` Matthew Heaney
1997-10-17 0:00 ` Jon S Anthony
1997-10-18 0:00 ` Tom Moran
1997-10-18 0:00 ` Matthew Heaney
1997-10-19 0:00 ` Tom Moran
1997-10-19 0:00 ` Matthew Heaney
1997-10-21 0:00 ` Tom Moran
1997-10-21 0:00 ` Matthew Heaney
1997-10-21 0:00 ` Robert A Duff
1997-10-18 0:00 ` Matthew Heaney
1997-10-21 0:00 ` Jon S Anthony
1997-10-21 0:00 ` Robert A Duff
1997-10-22 0:00 ` Robert Dewar
1997-10-22 0:00 ` Jon S Anthony
1997-10-22 0:00 ` Jon S Anthony
1997-10-23 0:00 ` Fergus Henderson
1997-10-23 0:00 ` Jon S Anthony
1997-10-24 0:00 ` Geert Bosch [this message]
1997-10-23 0:00 ` Jon S Anthony
1997-10-21 0:00 ` Robert Dewar
1997-10-21 0:00 ` Jon S Anthony
1997-10-22 0:00 ` Robert Dewar
1997-10-22 0:00 ` Jon S Anthony
1997-10-21 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox