From: "Gautier Write-only-address" <gautier_niouzes@hotmail.com>
To: comp.lang.ada@ada.eu.org
Subject: Re: How to get a compilation error
Date: Fri, 16 Nov 2001 08:23:56 +0000
Date: 2001-11-16T08:23:56+00:00 [thread overview]
Message-ID: <mailman.1005899127.21696.comp.lang.ada@ada.eu.org> (raw)
>From: "Jean-Pierre Rosen" <rosen@adalog.fr>
>To get an error, do the following:
>subtype Assert is boolean range True..True;
>Check : constant := Assert'Pos(96 rem Chunk_Bits = 0)
>
>Since Check is a named number, an invalid value will result in a compile
>time error (new in 95).
Interesting to observe that neither GNAT 3.13p nor OA 7.2.1
says anything against
------------------------------------------------------
procedure xxx is
subtype Assert is Boolean range True..True;
Check1 : constant := Assert'Pos(True) ;
Check2 : constant := Assert'Pos(False) ;
begin
null;
end;
------------------------------------------------------
;-)
______________________________________________________
Gautier -- http://www.mysunrise.ch/users/gdm/e3d.htm
NB: Do not answer to sender address, visit the Web site!
Ne r�pondez pas � l'exp�diteur, visitez le site ouaibe!
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
next reply other threads:[~2001-11-16 8:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-16 8:23 Gautier Write-only-address [this message]
[not found] <mailman.1005975714.13778.comp.lang.ada@ada.eu.org>
2001-11-17 11:32 ` How to get a compilation error Preben Randhol
-- strict thread matches above, loose matches on Subject: below --
2001-11-15 14:16 Wilhelm Spickermann
2001-11-15 15:06 ` Martin Dowie
2001-11-15 15:09 ` Jean-Pierre Rosen
2001-11-15 17:38 ` Wilhelm Spickermann
2001-11-16 8:19 ` Jean-Pierre Rosen
2001-11-16 9:44 ` Wilhelm Spickermann
2001-11-16 10:22 ` Pi
2001-11-16 17:27 ` Wilhelm Spickermann
2001-11-15 23:49 ` martin.m.dowie
2001-11-16 9:05 ` Wilhelm Spickermann
2001-11-15 17:47 ` Wilhelm Spickermann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox