comp.lang.ada
 help / color / mirror / Atom feed
* OO: How to?  Writeable from a readable?
@ 2003-01-05 23:09 chris.danx
  2003-01-05 23:40 ` tmoran
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: chris.danx @ 2003-01-05 23:09 UTC (permalink / raw)


Hi,

How can you resolve the following problem?  Let's suppose you have a 
tagged type readable_x say, which only allows you read access to the 
data in it, and you want to extend it with a new tagged type writeable_x 
which allows you read and write access to data.  How can you do this?


The problem as I see it, is that if you make the data in readable_x 
private you can't extend and modify it in the extended type, but if you 
make it public anyone can modify the data anyway.  Is there a way around 
this problem (I want to allow a writeable wherever a readable is allowed!)?


Cheers,
Danx
-- 
for personal replies change spamoff to chris




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

end of thread, other threads:[~2003-01-06 18:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-05 23:09 OO: How to? Writeable from a readable? chris.danx
2003-01-05 23:40 ` tmoran
2003-01-06  3:39 ` John R. Strohm
2003-01-06  9:25   ` chris.danx
2003-01-06 18:00 ` OO: " Stephen Leake

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