format a string like sprintf?

teo teo.ubuntu at yahoo.com
Tue Aug 16 08:55:08 PDT 2011


On Tue, 16 Aug 2011 09:51:41 -0400, bearophile wrote:

> teo:
> 
>> What is the correct way in D to format a string like sprintf? I need to
>> pad a number with zeroes. I tried to use std.format.format and
>> std.string.format, but had some strange results.
> 
> Why don't you show one or more complete runnable examples that show your
> strange results? Both if there are bugs in Phobos to report in Bugzilla,
> or if you are using it badly, it's useful to know it.
> 
> Bye,
> bearophile


Please ignore my post. It is all my fault. std.string.format is working 
as expected (at least in my case).


More information about the Digitalmars-d-learn mailing list