Re: [fpc-pascal] Checking the validity of Format and friends at compile-time

2016-10-04 Thread Sven Barth
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

[fpc-pascal] Checking the validity of Format and friends at compile-time

2016-10-04 Thread 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 compiler:) For example, the call Format('%s', [123]) is guaranteed

[fpc-pascal] Enabling IPv6 for freepascal.org domain

2016-10-04 Thread Graeme Geldenhuys
To whom it may concern, This image of Arnie (Arnold Schwarzenegger) describes it best. :-) https://cdn.meme.am/instances/59911439.jpg Could the powers that be, please enable IPv6 support for the freepascal.org domain. The HTTP server would be a good start. Once your ISP supports IPv6, the swi

Re: [fpc-pascal] Socket pair

2016-10-04 Thread Paul Breneman
On 10/03/2016 07:24 AM, Paul Breneman wrote: On 10/03/2016 03:27 AM, Santiago A. wrote: I've seen that "accept" functions with socket pairs are deprecated. And fpsocketpair returns always -1. How do you get the in and out streams when a server accepts a new client connection? I have seen some

[fpc-pascal] SetString and result CodePage

2016-10-04 Thread LacaK
Hi, Am I right, when I say, that SetString(S, P, L) sets S code page do declared code page of S ? (So that SetString does not expect, that buffer pointed by P contains string encoded in CP_ACP)? So when S is UTF8String then after SetString S will have dynamic codepage = CP_UTF8 and when