From: "Jeffrey R. Carter" <spam@spam.com>
Subject: Re: changing alignment of built-in boolean
Date: Wed, 09 Nov 2005 22:14:33 GMT
Date: 2005-11-09T22:14:33+00:00 [thread overview]
Message-ID: <dxucf.1752$Xo.388@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <slrndn323s.lo7.bogus_addy@tango.mindfuq.org>
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
prev parent reply other threads:[~2005-11-09 22:14 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
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 [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox