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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7903a7ed8de6a521 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Ada 95 Compatibility Date: 1996/02/24 Message-ID: #1/1 X-Deja-AN: 140979239 references: <312DA0EB.4422@lfwc.lockheed.com> <4gmdfs$mdd@newsbf02.news.aol.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-02-24T00:00:00+00:00 List-Id: John Herro said " Thanks to everyone who replied to my initial question. Ken's RM reference provides the best and simplest solution, to add pragma Elaborate_Body as follows: package P is pragma Elaborate_Body; Buffer : array(1 .. 50) of Integer; end P; package body P is begin -- code to initialize Buffer end P; Yes, that's certainly fine in Ada 95. If you want to stay Ada 83 compatible, then a method which works in both 83 and 95 is package P is Buffer ... private type Requires_Body; end P; then in the body you give a dummy completion for the incomplete type.