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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4103f02f9e6c4df2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-14 21:07:44 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!isdnet!grolier!freenix!jussieu.fr!enst!enst.fr!not-for-mail From: Christoph Grein Newsgroups: comp.lang.ada Subject: RE: Ada 0y wish list: "with private" Date: Thu, 15 Feb 2001 05:53:53 +0100 (MET) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: avanie.enst.fr 982213395 20225 137.194.161.2 (15 Feb 2001 05:03:15 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 15 Feb 2001 05:03:15 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-MD5: LXi0/rvms7ILPYeXDGltFQ== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk X-Reply-To: Christoph Grein List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:5266 Date: 2001-02-15T05:53:53+01:00 package A is type B is private; private end A; package body A is type B is ...; end A; There are severe code generation problem with this proposal. When the spec of A is compiled, the compiler has to know how big objects of type B are. So the full declaration has to go into the spec. package A is type B is private; private type X; type B is access X; end A; package body A is type X is ...; end A; With this solution, it's definitely clear how big B is, irrespective of the size of X;