From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=unavailable autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: In precision typing we trust Date: Tue, 19 Aug 2025 08:24:23 +0200 Organization: Adalog Message-ID: <10815an$3iu6o$1@dont-email.me> References: <107uv9g$3019a$1@dont-email.me> <107v1ji$303of$1@dont-email.me> <336fbb5f-a279-ea8e-67fd-f62bb00d6a89@irrt.De> <107vfb9$34cpj$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 19 Aug 2025 06:24:23 +0000 (UTC) Injection-Info: dont-email.me; posting-host="c0066d28ae6157a49f4a133a68495e7d"; logging-data="3766488"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dkcQdBKtHIROEnpPQsgJZ" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:YB/J0tJ2+r92BLK831eQCPrkVaI= In-Reply-To: <107vfb9$34cpj$1@dont-email.me> Content-Language: en-US, fr Xref: feeder.eternal-september.org comp.lang.ada:66881 List-Id: Le 18/08/2025 à 17:03, Dmitry A. Kazakov a écrit : >> Ada is a strongly typed language so Ada is not an OOP language. > > Ada is a strongly typed OO language. More precisely: OOP implies a weakening of the typing system, since a wider class can contain any object of the subclass. But in Ada, this can happen only for objects of a class-wide type; so you get it only if you ask for it, and you immediately know from the type of an object which values it can hold.