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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f5274610845c232 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: I18N gettext style Date: 2000/03/04 Message-ID: <89rg5c$aqm1@news.cis.okstate.edu>#1/1 X-Deja-AN: 593143629 References: <89q6pg$9ac1@news.cis.okstate.edu> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-03-04T00:00:00+00:00 List-Id: On Sat, 04 Mar 2000 08:28:01 GMT, tmoran@bix.com wrote: >> Ada.Text_IO.Put (N("Hi! There are ") && To_String(I) && N("widgets!")); >>won't put I in the proper position in the translated message for some > Certainly an Ada version of printf in the form of a set like > procedure print0(s : in string); > procedure print1(s : in string; a : in string); > procedure print2(s : in string; a : in string; b : in string); Is there any reason you used print0, print1, print2, instead of print, print, print? My instinct is to overload them. > Better yet, instead of %s, use %a in print1, %a and %b in print2, >etc, and then N can even change the order, which it can't in the >C paradigm. Or %1 and %2, for compatibility with current systems. Thanks. -- David Starner - dstarner98@aasaa.ofe.org Only a nerd would worry about wrong parentheses with square brackets. But that's what mathematicians are. -- Dr. Burchard, math professor at OSU