Why is std.string.format a c-style variadic function?

Ellery Newcomer ellery-newcomer at utulsa.edu
Mon Sep 26 09:01:03 PDT 2011


On 09/26/2011 07:42 AM, Andrej Mitrovic wrote:
> On 9/26/11, Jacob Carlborg <doob at me.com> wrote:
>> std.string.format is using a D-style variadic parameter list.
> 
> The compiler disagrees with you:
> 
> D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\string.d(2432): Error:
> function std.string.format C-style variadic functions are not yet
> implemented in CTFE
> 
> L2432:
> string format(...)
> 
> I don't see any other format() overloads in std.string.

std.metastrings.Format wouldn't be what you want, would it?


More information about the Digitalmars-d-learn mailing list