Boost logo

Boost :

From: Dirk Gerrits (dirkg_at_[hidden])
Date: 2002-05-13 14:28:34


----- Original Message -----
From: "Dragan Milenkovic" <tyrant_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, 13 May, 2002 18:23
Subject: Re: [boost] String formatting library: interest?

> On May 12, 2002, Giovanni Bajo wrote:
>
> <snip>
> > cout << mystring("Hello, my name is %1 and I am %2 years
> > old").arg("Giovanni").arg(999) << endl;
>
> Just to say that python language uses operator % for a similar thing.
> In python there is %f, %d instead of %1, but I find this more
> convenient. Still... can we use % ? :)

No offence to the python language, but arg seems a lot clearer to me
than %. Never the less, it is of course also possible to implement
both. (Right?)

Dirk Gerrits


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk