Thread overview
formattedWrite
Aug 08, 2011
simendsjo
Aug 08, 2011
Vladimir Panteleev
Aug 08, 2011
simendsjo
Aug 08, 2011
simendsjo
Aug 08, 2011
simendsjo
August 08, 2011
I cannot find any string format() method in phobos.
Having to do:
auto a = appender!string();
formattedWrite(a, "", ...);
a.data

seems unnecessary in many cases.
August 08, 2011
On Mon, 08 Aug 2011 14:37:26 +0300, simendsjo <simendsjo@gmail.com> wrote:

> I cannot find any string format() method in phobos.

What's wrong with format() from std.string?

-- 
Best regards,
 Vladimir                            mailto:vladimir@thecybershadow.net
August 08, 2011
On 08.08.2011 13:37, Vladimir Panteleev wrote:
> On Mon, 08 Aug 2011 14:37:26 +0300, simendsjo <simendsjo@gmail.com> wrote:
>
>> I cannot find any string format() method in phobos.
>
> What's wrong with format() from std.string?
>

Thanks, that was the function I was looking for. I just expected it to be in std.format (and I also looked in std.stdio).
August 08, 2011
On 08.08.2011 13:41, simendsjo wrote:
> On 08.08.2011 13:37, Vladimir Panteleev wrote:
>> On Mon, 08 Aug 2011 14:37:26 +0300, simendsjo <simendsjo@gmail.com>
>> wrote:
>>
>>> I cannot find any string format() method in phobos.
>>
>> What's wrong with format() from std.string?
>>
>
> Thanks, that was the function I was looking for. I just expected it to
> be in std.format (and I also looked in std.stdio).

Seems std.string.format is missing positional arguments..
August 08, 2011
On 08.08.2011 14:07, simendsjo wrote:
> On 08.08.2011 13:41, simendsjo wrote:
>> On 08.08.2011 13:37, Vladimir Panteleev wrote:
>>> On Mon, 08 Aug 2011 14:37:26 +0300, simendsjo <simendsjo@gmail.com>
>>> wrote:
>>>
>>>> I cannot find any string format() method in phobos.
>>>
>>> What's wrong with format() from std.string?
>>>
>>
>> Thanks, that was the function I was looking for. I just expected it to
>> be in std.format (and I also looked in std.stdio).
>
> Seems std.string.format is missing positional arguments..

http://d.puremagic.com/issues/show_bug.cgi?id=6455