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-15 11:18:15 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!freenix!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: Ada 0y wish list: "with private" Date: Thu, 15 Feb 2001 14:16:52 -0500 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="iso-8859-1" X-Trace: avanie.enst.fr 982264694 40760 137.194.161.2 (15 Feb 2001 19:18:14 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 15 Feb 2001 19:18:14 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk 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:5282 Date: 2001-02-15T14:16:52-05:00 I disagree. If the compiler treated the deferred type as a "by reference" type then there wouldn't be a problem. It would be similar to an access type without the requirement of allocation/deallocation, null checks, etc. When a variable of type B is declared, the compiler will always pass it by reference (by address), which is the equivalent of passing an access type. Frank -----Original Message----- From: Christoph Grein [mailto:christoph.grein@eurocopter.de] Sent: Wednesday, February 14, 2001 11:54 PM To: comp.lang.ada@ada.eu.org Subject: RE: Ada 0y wish list: "with private" 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.