This throws an exception:
---
import std.format;
void main()
{
string str = "foo bar buzz";
string a, c;
int b;
formattedRead(str, "%s %d %s", &a, &b, &c);
}
---
This not:
---
import std.format;
void main()
{
string str = "foo bar buzz";
string a, c;
formattedRead(str, "%s %*d %s", &a, &c);
}
---
The reason is, that %*d accepts an empty string as a number while %d doesn't.
Comment #1 by robert.schadek — 2024-12-01T16:36:03Z