Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <va149e$388rf$1@dont-email.me>
Deutsch   English   Français   Italiano  
<va149e$388rf$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Randy Brukardt" <randy@rrsoftware.com>
Newsgroups: comp.lang.ada
Subject: Re: Reduction expressions
Date: Mon, 19 Aug 2024 22:59:04 -0500
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <va149e$388rf$1@dont-email.me>
References: <ly5xs4d2ft.fsf@pushface.org>
Injection-Date: Tue, 20 Aug 2024 05:58:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f8c704390ab6e2a53e0916014cf0082f";
	logging-data="3416943"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+2e+XDKXveHvIVayGFIjbme5cBP5hML64="
Cancel-Lock: sha1:+hweEEmYcNYGXZAIhB4HNm5GoFQ=
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246
X-RFC2646: Format=Flowed; Original
Bytes: 2289

"Simon Wright" <simon@pushface.org> wrote in message 
news:ly5xs4d2ft.fsf@pushface.org...
> Are the Accum_Type & Value_Type (ARM 4.5.10(9/5)) of a reduction attribute
> reference required to be definite?
>
> ARM 4.5.10(24/5) & (25.5) seem to imply so, which explains why GNAT
> doesn't support e.g. String.

Accum_Subtype (we changed the name since it is a subtype, not a type; 
various clarifications were made to the wording as well in AI22-0011-1, 
AI22-0047-1, and AI22-0069-1) most likely has to be definite since the 
accumulator is of that type, and the bounds/constraints of the accumulator 
are thus defined by the initial value. In most uses, the first call on 
Reduce would then raise Constraint_Error (because the bounds/constraints are 
incorrect). I don't think there is any reason that the Value_Subtype has to 
be definite for a sequential reduce (a parallel reduce requires the two 
subtypes to statically match).

Note that if someone has a clever way to use an indefinite result, it is 
allowed. For instance, I could see a class-wide result making sense in some 
limited circumstances. But I don't think String would do anything useful, 
since the bounds are determined by the initial value.

BTW, this answer is essentially topic #1 of AI22-0011-1.

                    Randy.