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, WEIRD_QUOTING autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f9cd205deb0d77f2 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: How can I qualify the predefined logical operations Date: 1998/07/17 Message-ID: #1/1 X-Deja-AN: 372436294 References: <6okcnl$n93$1@nnrp1.dejanews.com> <6ola80$vhs$1@nnrp1.dejanews.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 900699125 30886 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-07-17T00:00:00+00:00 List-Id: Tuck said <<: package body Some_Package is : function "And" (Left, Right: Private_Type) return Private_Type is : begin : return Standard."And" (Left, Right); -- ERROR: not possible This should not work (though it may work in some versions of GNAT), because the predefined "and" is *not* declared in package Standard. >> Just so no confusion arises from the above, it is most certainly the case that the current version of GNAT rejects the above illegal program: 1. package body Some_Package is 2. function "And" (Left, Right: Private_Type) return Private_Type is 3. begin 4. return Standard."And" (Left, Right); -- ERROR: not possible | >>> ""And"" not declared in "Standard" 5. end "And"; 6. end Some_Package;