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!news1.google.com!proxad.net!proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: changing alignment of built-in boolean Date: Mon, 17 Oct 2005 20:02:41 +0200 Organization: Adalog Message-ID: References: <1129320236.007525.185300@g44g2000cwa.googlegroups.com> <8764rzhfo0.fsf@ludovic-brenta.org> <1129332814.670876.3310@g49g2000cwa.googlegroups.com> <6352843.iZBs4xBJdn@linux1.krischik.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1129575669 19634 195.25.228.57 (17 Oct 2005 19:01:09 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Mon, 17 Oct 2005 19:01:09 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: fr, en In-Reply-To: <6352843.iZBs4xBJdn@linux1.krischik.com> Xref: g2news1.google.com comp.lang.ada:5754 Date: 2005-10-17T20:02:41+02:00 List-Id: Martin Krischik a �crit : > A typo from Ludovic. you really need: > > type External_Boolean is new Boolean; > for External_Boolean'Size use 32; > for External_Boolean'Alignment use 32; > > Of corse you need an explicit convertion between Boolean and > External_Boolean. > Not always. For example, an if statement will accept a condition whose type is External_Boolean (5.3(4): A condition is expected to be of any boolean type, and 3.5.3(1): Any descendant of the predefined type Boolean is called a boolean type. ) -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr