From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bbd357da6d6d7756,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-05 15:05:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed.vmunix.org!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-gui.server.ntli.net.POSTED!53ab2750!not-for-mail From: "chris.danx" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en, en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: OO: How to? Writeable from a readable? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Inktomi-Trace: pc2-bbrg1-4-cust136.renf.cable.ntl.com 1041807934 28565 80.4.70.136 (5 Jan 2003 23:05:34 GMT) Message-ID: <3T2S9.721$GU4.33144@newsfep1-gui.server.ntli.net> Date: Sun, 05 Jan 2003 23:09:12 +0000 NNTP-Posting-Host: 80.1.224.5 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-gui.server.ntli.net 1041807935 80.1.224.5 (Sun, 05 Jan 2003 23:05:35 GMT) NNTP-Posting-Date: Sun, 05 Jan 2003 23:05:35 GMT Organization: ntl News Service Xref: archiver1.google.com comp.lang.ada:32584 Date: 2003-01-05T23:09:12+00:00 List-Id: 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