comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Is this an error in compiler
Date: Sun, 11 Sep 2022 17:47:21 +0200	[thread overview]
Message-ID: <tfkvu9$1vrpq$1@dont-email.me> (raw)
In-Reply-To: <jo6ahtFfaipU1@mid.individual.net>

On 2022-09-11 16:44, Niklas Holsti wrote:
> 
> I don't find these "raise .. when" or "return .. when" constructs in the Ada 
> 2022 RM draft, so I don't think the ARG has adopted them (yet). I suspect they 
> are GNAT extensions, as is the ability to make a subtype of String with a fixed 
> lower index bound of 1 but an unconstrained upper bound (1 .. <>), as also done 
> in the OP's code.

Sorry, I didn't realize AdaCore was distributing GNAT for non-Ada.

> I would not use these non-standard GNAT extensions, as long as GNAT is not the 
> only Ada compiler in the world, which it fortunately isn't.

I won't even use the Ada-2X features until it's supported by multiple compilers.

-- 
Jeff Carter
"Sheriff murdered, crops burned, stores looted,
people stampeded, and cattle raped."
Blazing Saddles
35

  reply	other threads:[~2022-09-11 15:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-11  7:19 Is this an error in compiler reinert
2022-09-11  8:10 ` Simon Wright
2022-09-11 10:52   ` reinert
2022-09-11 12:30   ` Jeffrey R.Carter
2022-09-11 12:59     ` Dmitry A. Kazakov
2022-09-11 14:44     ` Niklas Holsti
2022-09-11 15:47       ` Jeffrey R.Carter [this message]
2022-09-11 16:47         ` reinert
2022-09-11 17:18           ` Dmitry A. Kazakov
2022-09-12  7:05       ` Simon Wright
2022-09-11 15:14   ` Oliver Kellogg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox