comp.lang.ada
 help / color / mirror / Atom feed
* Overlays
@ 1988-09-15 21:46 Fred Hosch
  1988-09-16 22:49 ` Overlays Jeff Bartlett
  0 siblings, 1 reply; 2+ messages in thread
From: Fred Hosch @ 1988-09-15 21:46 UTC (permalink / raw)


LRM 13.5 tells me "address clauses should not be used to achieve overlays
of objects."  How do I "achieve overlays" of --very large-- objects?

Fred. Hosch
fred@cs.utexas.edu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Overlays
  1988-09-15 21:46 Overlays Fred Hosch
@ 1988-09-16 22:49 ` Jeff Bartlett
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Bartlett @ 1988-09-16 22:49 UTC (permalink / raw)


In article <3338@cs.utexas.edu>, fred@cs.utexas.edu (Fred Hosch) writes:
> LRM 13.5 tells me "address clauses should not be used to achieve overlays
> of objects."  How do I "achieve overlays" of --very large-- objects?
> 
> Fred. Hosch
> fred@cs.utexas.edu

It sounds like you are trying to save storage by sharing the space
of large objects with disjoint but static lifetimes.

One method is to declare pointers to the objects and allocate the object
at the beginning of its lifetime and dispose of it at the end of its lifetime.

Also, one could use renaming to avoid all of the "PTR.ALL" references.

To get equivalencing, use UNCHECKED_CONVERSION between the pointers. (I think
it takes access types).


Jeff Bartlett
Center for Digital Systems Research
Research Triangle Institute		jb@rti.rti.org		mcnc!rti!jb
-

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1988-09-16 22:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-09-15 21:46 Overlays Fred Hosch
1988-09-16 22:49 ` Overlays Jeff Bartlett

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