Would it be possible to issue a warning if the number of placeholders in the format string in e.g. Error, Confirm, StrSubstNo etc. does not match the number of arguments passed? E.g.
Too few parameters (error):
StrSubstNo('%1 foo %2 baz %3', Qux, Quux);
To many parameters (warning?):
Error('%1 foo', Baz, Bar);
Note that, strictly speaking, this is about the placeholders' indexes, not about the number of placeholders:
StrSubstNo('%1 %1 %1', Foo); // should be perfectly valid, with just one placeholder argument (%1).
Would it be possible to issue a warning if the number of placeholders in the format string in e.g. Error, Confirm, StrSubstNo etc. does not match the number of arguments passed? E.g.
Too few parameters (error): StrSubstNo('%1 foo %2 baz %3', Qux, Quux);
To many parameters (warning?): Error('%1 foo', Baz, Bar);
Note that, strictly speaking, this is about the placeholders' indexes, not about the number of placeholders: StrSubstNo('%1 %1 %1', Foo); // should be perfectly valid, with just one placeholder argument (%1).
Thanks for considering my suggestion!