comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Did I find a bug here?
Date: Sat, 3 Apr 2021 08:41:32 +0200	[thread overview]
Message-ID: <s492mr$d5e$1@dont-email.me> (raw)
In-Reply-To: <2bb293da-8c8d-471c-ab0a-93fbc0033485n@googlegroups.com>

Le 03/04/2021 à 07:46, reinert a écrit :
> Could AB_Type(X) in "case AB_Type(X) is" function as such a valid check?
Yes, but I recommend "case AB_Type'(X) is", i.e. a qualification rather 
than a conversion.

For the record:
A conversion carries the message: Take a value of type A and get the 
corresponding value from type B.

A qualification carries the message: I assume that the value belongs to 
(sub)type A.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

  reply	other threads:[~2021-04-03  6:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-02  6:30 Did I find a bug here? reinert
2021-04-02  7:30 ` J-P. Rosen
2021-04-02  8:33   ` Niklas Holsti
2021-04-03  5:46     ` reinert
2021-04-03  6:41       ` J-P. Rosen [this message]
2021-04-03  8:18         ` Niklas Holsti
2021-04-03 12:37           ` J-P. Rosen
  -- strict thread matches above, loose matches on Subject: below --
2021-04-02  6:15 reinert
replies disabled

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