[fpc-pascal] Checking the validity of Format and friends at compile-time
Sven Barth
pascaldragon at googlemail.com
Wed Oct 5 07:59:28 CEST 2016
Am 05.10.2016 04:33 schrieb "Michalis Kamburelis" <michalis.kambi at gmail.com
>:
>
> Hi,
>
> I'm wondering if there is a tool that checks the correctness of calls
> to Format and friends (like Exception.CreateFmt) in your code. Or does
> someone plan to write one, as an external tool (like a "lint") or
> inside the FPC compiler:)
I don't know of any tool, but something like this definitely wouldn't
become part of the compiler as that would mean an unnecessarily tight
coupling between compiler and RTL not to mention that user code that uses
"array of const" wouldn't necessarily benefit from it.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161005/6a99a454/attachment.html>
More information about the fpc-pascal
mailing list