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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e1bb9627c57b7d5b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-02 17:05:07 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: aek@vib.usr.pu.ru (Alexander Kopilovitch) Newsgroups: comp.lang.ada Subject: Re: U : Unbounded String : "bla bla bla"; (was: Is the Writing...) Date: 2 Oct 2003 17:05:07 -0700 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 213.33.245.68 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1065139507 591 127.0.0.1 (3 Oct 2003 00:05:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 3 Oct 2003 00:05:07 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:138 Date: 2003-10-02T17:05:07-07:00 List-Id: amado.alves wrote: > User-defined implicit conversion would solve this problem. Pragma > approach: > > function To Unbounded (S : String) return Unbounded String; > pragma Implicit Conversion (To Unbounded); > U : Unbounded String := "bla bla bla"; Implicit conversions lead to some problems (it is also known from C++ experience.) I'm sure that it would be serious mistake to add implicit conversions to the language for purposes of this rank only. Generally, I think that implicit conversion are significantly less compatible with Ada spirit than with C++ spirit; in C++ implicit conversions probably do more good than bad, while in Ada they probably will do more bad than good. > However it is too late for Ada 2005 now :-( Well, I think that for unclear and disputable issues (like this) we should not pay attention to the deadlines -:) . If we find a good solution, which pleases both users and compiler vendors then probably ARG will be happy to include it into some Technical Corrigendum -:) . Alexander Kopilovitch aek@vib.usr.pu.ru Saint-Petersburg Russia