Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 08, 2011 formattedWrite | ||||
---|---|---|---|---|
| ||||
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 Re: formattedWrite | ||||
---|---|---|---|---|
| ||||
Posted in reply to simendsjo | 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 Re: formattedWrite | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | 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 Re: formattedWrite | ||||
---|---|---|---|---|
| ||||
Posted in reply to simendsjo | 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 Re: formattedWrite | ||||
---|---|---|---|---|
| ||||
Posted in reply to simendsjo | 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 |
Copyright © 1999-2021 by the D Language Foundation