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,2485cb1936a0a4ec X-Google-Attributes: gid103376,public From: mcc@entropy.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Package with initialization only Date: 1999/07/21 Message-ID: <7n543e$4bu$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 503634580 References: <37961DD6.E56BD3E9@maths.unine.ch> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1999-07-21T00:00:00+00:00 List-Id: In article <37961DD6.E56BD3E9@maths.unine.ch>, Gautier wrote: >A small "aesthetic" problem: I have a package with initialization only; >thus I must add a dummy procedure to resolve the with/without body >ambiguity Ada95 doesn't accept. There is surely a more elegant formulation, >surely with OO, since the initialization procedure affects the public >variable of the package. Its present state: You can also use "pragma Elaborate_Body;", as in: package test_elab is pragma Elaborate_Body; x : integer; end test_elab; --Martin -- Martin C. Carlisle, Asst Prof of Computer Science, US Air Force Academy carlislem@acm.org, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standards or policy of the US Air Force Academy or the United States Government.