Deutsch   English   Français   Italiano  
<va38ve$3i3ne$11@dont-email.me>

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

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.ada
Subject: Re: Reduction expressions
Date: Tue, 20 Aug 2024 23:30:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <va38ve$3i3ne$11@dont-email.me>
References: <ly5xs4d2ft.fsf@pushface.org> <va149e$388rf$1@dont-email.me>
	<lyjzgaopm8.fsf@pushface.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 21 Aug 2024 01:30:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b7054728ccecf746f3a261c5985019ab";
	logging-data="3739374"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18Ud8moVEuGLw0yl0+OPcot"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:ZQRLqlB2B4p+xGS7SoJarsTk7k4=
Bytes: 1955

On Tue, 20 Aug 2024 22:23:27 +0100, Simon Wright wrote:

> "Randy Brukardt" <randy@rrsoftware.com> writes:
> 
>> Accum_Subtype (we changed the name since it is a subtype, not a type;
> 
> Amazing how a person (I) can have used Ada for ~40 years and still be
> hard put to it to describe the difference, at least in a case like this
> one, where the ARG members clearly see meanings that leave me lukewarm
> if not cold. Maybe "the heart of twilight"?

I thought the difference was obvious. “subtype” is the C equivalent of 
“typedef”, just giving a new name to an existing type. So

    subtype A is B;

(where A and B are simple identifiers) is valid, whereas

    type A is B;

is not: a “type” declaration always creates a new type: you have to write 
at least

    type A is new B;

and now you have two types with different names that are structurally the 
same, but not compatible.