El 05/10/2016 a las 19:47, Michalis Kamburelis escribió:
> 2016-10-05 9:00 GMT+02:00 Maciej Izak :
>> 2016-10-05 4:32 GMT+02:00 Michalis Kamburelis :
>>> For example, the call
>>>
>>> Format('%s', [123])
>>
>> I have a small hint (instead of answer). We have in mORMot / NewPascal in
>> SynCommons
In our previous episode, Michael Schnell said:
> > RTL not to mention that user code that uses "array of const" wouldn't
> > necessarily benefit from it.
> GNU C does check this when using printf() and friends, and rather
> obviously the "array of const" is modeled after the C ellipse notation.
On 05.10.2016 07:59, Sven Barth wrote:
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.
GNU C does check
2016-10-05 9:00 GMT+02:00 Maciej Izak :
>
> 2016-10-05 4:32 GMT+02:00 Michalis Kamburelis :
>>
>> For example, the call
>>
>> Format('%s', [123])
>
>
> I have a small hint (instead of answer). We have in mORMot / NewPascal in
> SynCommons module nice function which works perfect in most of cases:
2016-10-05 4:32 GMT+02:00 Michalis Kamburelis :
> For example, the call
>
> Format('%s', [123])
>
I have a small hint (instead of answer). We have in mORMot / NewPascal in
SynCommons module nice function which works perfect in most of cases:
FormatUTF8('%', [123], []); // same string '%' works
Am 05.10.2016 04:33 schrieb "Michalis Kamburelis" :
>
> 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 compile
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:)
For example, the call
Format('%s', [123])
is guaranteed