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,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!newsfeed.stueberl.de!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Alexander E. Kopilovich" Newsgroups: comp.lang.ada Subject: Re: A simple ADA puzzle (I haven't the answer) Date: Fri, 18 Jun 2004 03:15:05 +0400 (MSD) Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1087514111 11249 212.85.156.195 (17 Jun 2004 23:15:11 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 17 Jun 2004 23:15:11 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: ; from "Frank J. Lhota" at Thu, 17 Jun 2004 14:33:26 GMT X-Mailer: Mail/@ [v2.44 MSDOS] 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 Precedence: list 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:1636 Date: 2004-06-18T03:15:05+04:00 Frank J. Lhota wrote: > > I came from Turbo Pascal. I still find it annoying to have to write > > "To_String" and "To_Unbounded_String" everywhere, but I can't remember > >being particularly confused. > > What I generally do is rename these functions to the unary "+" operator. Certainly so (or use V() and S()), but it is still annoying. > By > doing this, I still have an indication that the conversion operation takes > place, But I don't want that indication, particularly because actually there is no conversion of data at all (neither in my mind nor in the computer). There may be check for a constraint (if unbounded string is assigned to fixed or bounded string), but that situation is just similar to integer subtypes, and there are no indication for conversion (which is certainly right, as there is no conversion). > but it does not take up a lot of room. The problem is not about the room, but about the annoying irregularity and a portion of distraction. Alexander Kopilovich aek@vib.usr.pu.ru Saint-Petersburg Russia