I approved DIP1036e
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sun Jan 21 22:58:43 UTC 2024
If you need to disable dfmt for a block of code, disable it.
https://github.com/dlang-community/dfmt?tab=readme-ov-file#disabling-formatting
```d
void main(string[] args)
{
bool optionOne, optionTwo, optionThree;
// dfmt has no way of knowing that "getopt" is special, so it wraps the
// argument list normally
getopt(args, "optionOne", &optionOne, "optionTwo", &optionTwo,
"optionThree", &optionThree);
// dfmt off
getopt(args,
"optionOne", &optionOne,
"optionTwo", &optionTwo,
"optionThree", &optionThree);
// dfmt on
}
```
More information about the Digitalmars-d
mailing list