Feedback Thread: DIP 1036--Formatted String Tuple Literals--Community Review Round 1

Adam D. Ruppe destructionator at gmail.com
Tue Sep 8 19:30:42 UTC 2020


On Tuesday, 8 September 2020 at 19:21:49 UTC, Daniel N wrote:
> Correct me if I'm wrong, but this proposal is incompatible with 
> scanf.

int foo;
scanf(i"${%d}(&foo)");

expands to:

scanf(InterpolatedString("%d"), &foo);

then InterpolatedString implicitly `alias this`es itself to:

scanf("%d".ptr, &foo);

which is exactly what is required.


More information about the Digitalmars-d mailing list