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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c75fd3043cfdcb58 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.188.76 with SMTP id cz12mr5754948qab.0.1344264214330; Mon, 06 Aug 2012 07:43:34 -0700 (PDT) Received: by 10.180.24.135 with SMTP id u7mr1193652wif.3.1344264214260; Mon, 06 Aug 2012 07:43:34 -0700 (PDT) Path: c6ni64817200qas.0!nntp.google.com!u3no3752703qai.0!news-out.google.com!q11ni72664032wiw.1!nntp.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!feeder.erje.net!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Formatted IO - Fortran style or similar. Date: Tue, 31 Jul 2012 17:12:37 +0200 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <50164ad8$0$1156$5b6aafb4@news.zen.co.uk> <501706ca$0$1151$5b6aafb4@news.zen.co.uk> <87lii06t5t.fsf@adaheads.sparre-andersen.dk> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 X-Trace: tigger.scc.uni-weimar.de 1343751182 29259 141.54.178.228 (31 Jul 2012 16:13:02 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Tue, 31 Jul 2012 16:13:02 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: <87lii06t5t.fsf@adaheads.sparre-andersen.dk> Content-Type: TEXT/PLAIN; charset=US-ASCII Date: 2012-07-31T17:12:37+02:00 List-Id: On Tue, 31 Jul 2012, Jacob Sparre Andersen wrote: > How would you handle translatable user visible strings - such as > "Parsing '${file_name}' failed on line ${line_number}." (where "${...}" > identifies parameter substitutions) - in Ada? Why do you need to *substitute* the parameters in the string at all? Without substitution, the following seems to work fine: Ada.Text_IO.Put_Line("Parsing " & File_Name & " failed on line " & To_String(Line_Number) & "."); Of course, you still have to write your function To_String(Line_Number: Line_Number_Type) return String; ... or you just use Line_Number'Image. -- ---- Stefan.Lucks (at) uni-weimar.de, University of Weimar, Germany ---- ------ I love the taste of Cryptanalysis in the morning! ------