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-Thread: a07f3367d7,46b760ffb623378c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!not-for-mail From: xavier grave Newsgroups: comp.lang.ada Subject: Re: Hiding the value of Constants Date: Tue, 07 Jul 2009 10:54:34 +0200 Organization: In2p3 Message-ID: <4A530D4A.4040304@ipno.in2p3.fr> References: <30696d63-16e8-44e2-a4a5-db5095d7cfec@m3g2000pri.googlegroups.com> NNTP-Posting-Host: ipnnarval.in2p3.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ccpntc8.in2p3.fr 1246956874 3870 134.158.92.7 (7 Jul 2009 08:54:34 GMT) X-Complaints-To: newsmaster@cc.in2p3.fr NNTP-Posting-Date: Tue, 7 Jul 2009 08:54:34 +0000 (UTC) To: Rick User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: <30696d63-16e8-44e2-a4a5-db5095d7cfec@m3g2000pri.googlegroups.com> X-Enigmail-Version: 0.95.0 Xref: g2news2.google.com comp.lang.ada:6873 Date: 2009-07-07T10:54:34+02:00 List-Id: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rick a �crit : > Is it possible to declare a constant in a package specification > without the user knowing the value of that constant? > package Test_Constant is pragma Pure; type My_Funny_Type is private; My_Funny_Constant_Value : constant My_Funny_Type; private type My_Funny_Type is new Integer; My_Funny_Constant_Value : constant My_Funny_Type := 0; end Test_Constant; Hope it will help -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpTDUoACgkQVIZi0A5BZF5TjACgpVzt1nmCmy2fmuy8S4dsj+bh IsIAn1XNr94ohlvWt97vuKMNHO5x/aSf =9Mp6 -----END PGP SIGNATURE-----