Poll on improved format strings.
Derek Parnell
derek at psych.ward
Tue Mar 6 13:18:18 PST 2007
On Tue, 06 Mar 2007 09:53:48 -0500, renoX wrote:
> Hello,
>
> I've made a templated format string templates
...
> I'd like some inputs to see if there is a majority in favour of one style or the other..
I will not be using this style of string formatting.
I like to have the format strings as something that the user supplies at
runtime so that they can control the output of messages to their users -
especially when considering multiple language support.
msg = Expand( getMsgLayout( msgno ), vars ...);
Output (msg );
where the msgno is a key to a runtime lookup for the layout of the message
which is suitable for the langugage of the current user.
--
Derek Parnell
Melbourne, Australia
"Justice for David Hicks!"
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list