Issues with std.format template function

LeqxLeqx via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 15 18:30:31 PDT 2017


On Tuesday, 15 August 2017 at 05:22:44 UTC, HyperParrow wrote:
> On Tuesday, 15 August 2017 at 04:44:25 UTC, LeqxLeqx wrote:
>> [...]
>
> GDC front-end is based on DMD 2.068.2 but the feature you use 
> (format specifier as template parameter) is only there since 
> DMD 2.075. The error comes from the fact that you read the 
> online documentation which is not valid for GDC.
>
> with GDC you can only does unchecked fmt:
>
> `auto s = format("%s is %s", "Pi", 3.14);`

Well that explains it. Thanks for the info


More information about the Digitalmars-d-learn mailing list