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: 103376,32e730fd939a8067 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: changing alignment of built-in boolean References: <1129320236.007525.185300@g44g2000cwa.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Wed, 09 Nov 2005 22:14:33 GMT NNTP-Posting-Host: 67.3.228.237 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1131574473 67.3.228.237 (Wed, 09 Nov 2005 14:14:33 PST) NNTP-Posting-Date: Wed, 09 Nov 2005 14:14:33 PST Xref: g2news1.google.com comp.lang.ada:6333 Date: 2005-11-09T22:14:33+00:00 List-Id: Anonymous Coward wrote: > type Big_Boolean_Type is new Boolean; > > Big_Boolean : Big_Boolean_Type; > > Big_Boolean := 2=2; --gnat rejects this line > > big_boolean_experiment.adb:14:23: expected type "Big_Boolean_Type" defined at line 3 > big_boolean_experiment.adb:14:23: found type "Standard.Boolean" Right. The only "=" returns Boolean, so you'd need to convert it: Big_Boolean := Big_Boolean_Type (2 = 2); -- Jeff Carter "To Err is human, to really screw up, you need C++!" St�phane Richard 63