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-03 02:00:08 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: U : Unbounded_String := "bla bla bla"; (was: Is the Writing...) Date: Fri, 3 Oct 2003 09:00:07 +0000 (UTC) Organization: PVV Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1065171607 15767 129.241.83.78 (3 Oct 2003 09:00:07 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 3 Oct 2003 09:00:07 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:143 Date: 2003-10-03T09:00:07+00:00 List-Id: On 2003-10-02, 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"; NONONONONONONO Implicit conversion is the mother of all bugs. It is a nightmare in FORTRAN 77 and you have to put a definistion turning it off. Preben