[Issue 18472] [Reg 2.078] betterC: cannot use format at compile time.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 2 18:15:05 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18472
--- Comment #13 from Mike Franklin <slavo5150 at yahoo.com> ---
(In reply to Mike Franklin from comment #12)
> This appears to work now in nightly:
>
> import std.format;
> import std.stdio;
> void main()
> {
> enum s = "%1$s,%2$s".format("foo","bar");
> writeln(s);
> }
>
> https://run.dlang.io/is/BDyoHF
>
> It may have been fixed inadvertently by
> https://github.com/dlang/dmd/pull/8523
Gah, scratch that. Forgot to add the -betterC flag. :-(
--
More information about the Digitalmars-d-bugs
mailing list