From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: changing alignment of built-in boolean
Date: Mon, 17 Oct 2005 20:02:41 +0200
Date: 2005-10-17T20:02:41+02:00 [thread overview]
Message-ID: <pvo0jd.k2r.ln@hunter.axlog.fr> (raw)
In-Reply-To: <6352843.iZBs4xBJdn@linux1.krischik.com>
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
next prev parent reply other threads:[~2005-10-17 18:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-14 20:03 changing alignment of built-in boolean invalidemail
2005-10-14 22:55 ` Ludovic Brenta
2005-10-14 23:33 ` invalidemail
2005-10-15 7:13 ` Martin Krischik
2005-10-17 18:02 ` Jean-Pierre Rosen [this message]
2005-10-14 23:29 ` tmoran
2005-10-15 1:39 ` Steve
2005-10-15 6:45 ` Jeffrey R. Carter
2005-10-15 6:40 ` Jeffrey R. Carter
2005-10-16 17:48 ` invalidemail
2005-11-09 3:25 ` Anonymous Coward
2005-11-09 5:42 ` christoph.grein
2005-11-09 22:14 ` Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox