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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5117b1b6391a0e06 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Christoph Karl Walter Grein" Newsgroups: comp.lang.ada Subject: Re: A simple ADA puzzle (I haven't the answer) Date: Thu, 17 Jun 2004 10:38:37 +0200 Organization: http://freemail.web.de/ Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1087461545 38612 212.85.156.195 (17 Jun 2004 08:39:05 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 17 Jun 2004 08:39:05 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: Precedence: fm-user X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:1608 Date: 2004-06-17T10:38:37+02:00 From: "Dmitry A.Kazakov" > As for Ada strings, there are only two problems related: > > 1. The default values for discriminants shall not have any implicit > effects on the memory allocation policy. That was a mistake of Ada 83. This syntax was defined exactly for this purpose. So it's _not_ a mistake. You may argue whether that was a clever choice. But there is no other use for the default discriminant than allowing discriminant changes. An alternative would have been to use a special reserved word. They tried to minimize the number of reserved words and used solutions with special syntax wherever possible. There are other syntax elements that are not very intuitive either: Type_Name'Identifier vs. Type_Name'(Identifier) vs. Type_Name(Identifier) > 2. Unbounded_String and Bounded_String are nasty patches, which should > be replaced when Ada will finally have a common supertype for all > types strings. This will never by I guess. ____________________________________________________ Aufnehmen, abschicken, nah sein - So einfach ist WEB.DE Video-Mail: http://freemail.web.de/?mc=021200