From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada Annoyances Date: Fri, 30 Jun 2017 12:14:06 +0200 Organization: A noiseless patient Spider Message-ID: References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> <1498048151.20885.28.camel@obry.net> <96174ea5-852d-44e9-8535-7c1eb24d5326@googlegroups.com> <8d3aff06-82df-485f-89e5-a50c326aab05@googlegroups.com> <66aa262e-2ac9-4016-b32d-e9fee14779e1@googlegroups.com> <88e2f18a-0786-4303-a5b8-fe82e8c81dcb@googlegroups.com> <71c4fdcd-4213-4b84-b852-c8674cfaf717@googlegroups.com> <0f43638d-8954-4db2-94a3-b6615754da34@googlegroups.com> <32bd3d2d-16d2-46f4-902f-3b6944f30226@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Jun 2017 10:10:26 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="4ad7cbfdf76bf49341b8c76585b4910d"; logging-data="6373"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9I3d6n8XYwnuOdkUEcWhd" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: Content-Language: fr Cancel-Lock: sha1:asJ1b0QWCV1ShPYg6xZBfyFL+Ug= Xref: news.eternal-september.org comp.lang.ada:47218 Date: 2017-06-30T12:14:06+02:00 List-Id: Le 30/06/2017 à 10:28, Dmitry A. Kazakov a écrit : > That is not syntax. There is just no such thing in Ada: > > 1. For any type T I declare, I must be able to define a constructor. > This includes T'Class. > > 2. For controlled types Initialize is not a constructor because it is > not always called and because it can be called explicitly out of place. > > And I must be able to provide parameters to constructors. And this is all doable with regular functions. Therefore, it continue to think that the only problem you have with Ada constructors is that they don't require a special syntax... -- 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