Re: [fpc-devel] download or compile documentation

2024-05-09 Thread Michael Van Canneyt via fpc-devel
On Thu, 9 May 2024, Marģers . via fpc-devel wrote: Is there a way to download human readable format documenation? Please explain ? The documentation is available as PDF. That's human readable ? Looking documentation of 3.2.2 and it is bad. Errors and errors. Wanted to crosschech, maybe

Re: [fpc-devel] fpc 3.3.1 fails in fpjwarsa

2024-03-20 Thread Michael Van Canneyt via fpc-devel
I just did the same for 55 platforms (cross-compile), on ubuntu. All work without errors ? Michael. On Wed, 20 Mar 2024, Martin Frb via fpc-devel wrote: Older Ubuntu, trying to update (starting compiler is 3.2.2) make clean make all  OPT=" -O-1 -gw3 " make install

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests - again

2024-03-20 Thread Michael Van Canneyt via fpc-devel
On Tue, 19 Mar 2024, Martin Frb via fpc-devel wrote: On 19/03/2024 15:41, Mattias Gaertner via fpc-devel wrote: On 19.03.24 14:58, Maxim Ganetsky via fpc-devel wrote: [...] #7 944.7 fpmake.pp(228,5) Error: Identifier not found "T" Ah, you are using fpc 3.3.1 to compile it. Fixed. But

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests - again

2024-03-18 Thread Michael Van Canneyt via fpc-devel
On Mon, 18 Mar 2024, Maxim Ganetsky via fpc-devel wrote: Hello. After recent update of FPC 3.3.1 (and Pas2JS) in Lazarus CI several Codetools tests related to Pas2JS started failing again: TTestPas2js.TestPas2js_ReadSettings: pas2js system unit not found

Re: [fpc-devel] i386-win32 -CriotR fails to build

2024-03-01 Thread Michael Van Canneyt via fpc-devel
On Fri, 1 Mar 2024, J. Gareth Moreton via fpc-devel wrote: Just want to confirm that the failure also occurs on x86_64-win64 under -CriotR rules. On all platforms. I fixed compilation with these flags. Michael. ___ fpc-devel maillist -

Re: [fpc-devel] Question about "Default()"

2024-02-22 Thread Michael Van Canneyt via fpc-devel
On Thu, 22 Feb 2024, Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/rtl/system/default.html Default is a compiler intrinsic: it returns for every type T a default value. In essence, this is a block of memory that is zeroed out. It can be used to correctly initialize

Re: [fpc-devel] Possible bug in "chmreader"

2024-02-22 Thread Michael Van Canneyt via fpc-devel
On Wed, 21 Feb 2024, Christo Crause via fpc-devel wrote: Hi Kit, fwindowslist is created in the constructor, which may explain why this bug is dormant. I assume this is supposed to be a defensive check, although fwindowslist is also accessed later in this method without a safety check.

Re: [fpc-devel] Compiler warning when built with -dDEBUG_NODE_XML

2024-02-17 Thread Michael Van Canneyt via fpc-devel
On Wed, 14 Feb 2024, J. Gareth Moreton wrote: Hi everyone, After some recent updates to the trunk, the compiler no longer successfully builds when -dDEBUG_NODE_XML is specified: symsym.pas(2885,9) Warning: (treated as error) Case statement does not handle all possible cases This is

Re: [fpc-devel] {$push} and {$pop} on trunk [2024/02/13] for aarach64 doen't work

2024-02-16 Thread Michael Van Canneyt via fpc-devel
On Fri, 16 Feb 2024, Hairy Pixels via fpc-devel wrote: His email looks good to me. Much easier to see code with formatting. Who doesn't have email clients with HTML support these days? I can't imagine how old your system must be to not have this. I don't have HTML support in my mail

Re: [fpc-devel] Default-max-precision for different float types?

2024-02-13 Thread Michael Van Canneyt via fpc-devel
On Tue, 13 Feb 2024, Martin Frb via fpc-devel wrote: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40768 Are there any defaults, with which precision each float type (single/double/extended) should be printed? Sysutils contains some defaults used by the format function:

Re: [fpc-devel] debug info and TAlphaColor = Cardinal;

2024-02-10 Thread Michael Van Canneyt via fpc-devel
On Sat, 10 Feb 2024, Martin Frb via fpc-devel wrote: The below leads to debug info reporting TAlphaColor as Cardinal. Maybe it could be changed (like TColor is a distinct type)? Done. Michael. ___ fpc-devel maillist -

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Jan 2024, Hairy Pixels via fpc-devel wrote: On Jan 30, 2024, at 8:01 PM, Michael Van Canneyt via fpc-devel wrote: It's probably more correct to say that you don't want there to be an override in a descendent class. Offhand I can't think of a use-case, but why not... yes you

Re: [fpc-devel] Modifiers...

2024-01-30 Thread Michael Van Canneyt via fpc-devel
On Tue, 30 Jan 2024, Hairy Pixels via fpc-devel wrote: On Jan 30, 2024, at 3:56 AM, Michael Van Canneyt via fpc-devel wrote: Unfortunately I still don't understand after your explanation what adding 'final' is supposed to accomplish. It may well be legitimate, but I have currently

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Michael Van Canneyt via fpc-devel
On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote: over whether the method had been declared as virtual. Hm. That makes no sense at all to me ? You normally add override only when you know the base class has virtual. Otherwise, don't add virtual. The compiler will tell you if it was

Re: [fpc-devel] Modifiers...

2024-01-29 Thread Michael Van Canneyt via fpc-devel
On Mon, 29 Jan 2024, Sven Barth via fpc-devel wrote: Am 28.01.2024 um 12:14 schrieb Michael Van Canneyt via fpc-devel: 2) Is there, or has there once been? (found in the synedit highlighter)   final final comes after virtual/dynamic. Its supposed to stop you from overriding a method

Re: [fpc-devel] Modifiers...

2024-01-28 Thread Michael Van Canneyt via fpc-devel
On Wed, 24 Jan 2024, Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/ref/refsu3.html Is this list complete/correct? 1) It lists bitpacked, but     program foo; var  bitpacked: integer;  begin end; gives an error. I thought modifiers can be used as var names?

Re: [fpc-devel] Changes to TProcess

2024-01-05 Thread Michael Van Canneyt via fpc-devel
On Thu, 4 Jan 2024, Michalis Kamburelis via fpc-devel wrote: Michael Van Canneyt wrote: Needless to say, the component remains backwards compatible. There is now a testsuite for the TProcess command, so everything was tested. but nothing beats testing in the wild, so I would appreciate

[fpc-devel] Changes to TProcess

2024-01-03 Thread Michael Van Canneyt via fpc-devel
Hello, I merged a significant evolution of the TProcess component to FPC trunk. Until recently, there were 2 options for TProcess when starting a new process: - use the parent process standard input/output/error - use pipes to make the standard input/output/error available as streams in the

Re: [fpc-devel] Cannot create Merge Request

2024-01-03 Thread Michael Van Canneyt via fpc-devel
On Tue, 2 Jan 2024, Amir--- via fpc-devel wrote: Hi there, I never used gitlab before, so my question might be very stupid! I am trying to follow the instruction here to create a patch. I have created a

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-29 Thread Michael Van Canneyt via fpc-devel
On Fri, 29 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 27/12/2023 om 13:37 schreef Marco van de Voort via fpc-devel: - The short description in the overview (#rtl) page still doesn't appear , After some debugging, my guess is that in this specific case the path chopping code

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-27 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 26/12/2023 om 19:53 schreef Michael Van Canneyt via fpc-devel: Can you explain what the exact problem is with system.uitypes other than that the description file was not included in the build project xml ? I built the docs

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 26/12/2023 om 18:20 schreef Michael Van Canneyt via fpc-devel: To fix this either we have to e.g. keep a list of packages and a list of units and then try to disambiguate to only pick the longest match. That maybe have risks

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Marco van de Voort via fpc-devel wrote: Op 26/12/2023 om 10:29 schreef Michael Van Canneyt via fpc-devel: To fix this either we have to e.g. keep a list of packages and a list of units and then try to disambiguate to only pick the longest match. That maybe have

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Maxim Ganetsky via fpc-devel wrote: So `make install` does not work as expected? It does, but 'make install' only does half the job for making a release: pas2js works with sources only, which are not installed by 'make install'. They were before. I rolled back to

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Tue, 26 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 26.12.2023 11:49, Michael Van Canneyt via fpc-devel пишет: On Mon, 25 Dec 2023, Maxim Ganetsky wrote: Thanks. But still no luck. It seems like asterisks in config file are not expanded properly. See the output of compilation run

Re: [fpc-devel] fpdoc path + system.uitypes problems.

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Mon, 25 Dec 2023, Marco van de Voort via fpc-devel wrote: (forum thread: https://forum.lazarus.freepascal.org/index.php/topic,65629.0.html) Don noticed that the system.uitypes lemma's in the CHM are empty, both with 3.2.x as 3.3.x fpdoc. I checked the only html snapshot and it is

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-26 Thread Michael Van Canneyt via fpc-devel
On Mon, 25 Dec 2023, Maxim Ganetsky wrote: 25.12.2023 18:35, Michael Van Canneyt via fpc-devel пишет: On Mon, 25 Dec 2023, Maxim Ganetsky via fpc-devel wrote: || -Fu$CfgDir../lib/fpc/3.3.1/pas2js/rtl/src | I see that there are missing directory separators after $CfgDir, maybe

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-25 Thread Michael Van Canneyt via fpc-devel
On Mon, 25 Dec 2023, Maxim Ganetsky via fpc-devel wrote: || -Fu$CfgDir../lib/fpc/3.3.1/pas2js/rtl/src | I see that there are missing directory separators after $CfgDir, maybe this is the reason? I added it. Also probably it would be worth to consider removing code duplication between

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-25 Thread Michael Van Canneyt via fpc-devel
On Sun, 24 Dec 2023, Maxim Ganetsky via fpc-devel wrote: As far as I know, Mattias is busy with it and has at least fixed the tests ? I see the commit by Mattias now, but it does not affect config file created by `make install`, because the following duplicated code is used for creating

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-24 Thread Michael Van Canneyt via fpc-devel
On Sun, 24 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 24.12.2023 01:07, Michael Van Canneyt via fpc-devel пишет: On Sat, 23 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 20.12.2023 12:36, Mattias Gaertner via fpc-devel пишет: On 20.12.23 10:18, Michael Van Canneyt via fpc-devel

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-23 Thread Michael Van Canneyt via fpc-devel
On Sat, 23 Dec 2023, Maxim Ganetsky via fpc-devel wrote: 20.12.2023 12:36, Mattias Gaertner via fpc-devel пишет: On 20.12.23 10:18, Michael Van Canneyt via fpc-devel wrote: [...] Is this an FPC regression or the tests should be adapted somehow? Can this be related to introduction

Re: [fpc-devel] Failing Lazarus Codetools Pas2JS-related tests

2023-12-20 Thread Michael Van Canneyt via fpc-devel
On Wed, 20 Dec 2023, Maxim Ganetsky via fpc-devel wrote: Hello. After recent update of FPC 3.3.1 (and Pas2JS) in Lazarus CI several Codetools tests related to Pas2JS started failing: TTestPas2js.TestPas2js_ReadSettings: pas2js system unit not found TTestPas2js.TestPas2js_FindDeclaration:

Re: [fpc-devel] TProcess and redirection of StdIn/Out (e.g. from/to files)

2023-12-14 Thread Michael Van Canneyt via fpc-devel
On Thu, 14 Dec 2023, Martin Frb via fpc-devel wrote: On 14/12/2023 21:33, Marco van de Voort via fpc-devel wrote: Op 14-12-2023 om 21:27 schreef Martin Frb via fpc-devel: I am actually pretty sure, on Linux, I can get what I want by doing it in the "OnFork" event of TProcess. But on

Re: [fpc-devel] TProcess and redirection of StdIn/Out (e.g. from/to files)

2023-12-14 Thread Michael Van Canneyt via fpc-devel
On Thu, 14 Dec 2023, Martin Frb via fpc-devel wrote: If I am right the TProcess currently does not allow redirection of StdOut/In to/from a file (or other handle provided). If it does, and I have been missing the "how to", then please enlighten me and disregard the remainder of the mail.

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-13 Thread Michael Van Canneyt via fpc-devel
On Wed, 13 Dec 2023, Jonas Maebe via fpc-devel wrote: On 09/12/2023 13:35, Adriaan van Os via fpc-devel wrote: Jonas Maebe via fpc-devel wrote: So if/when we would get FPC equivalents of such directives, I could translate those to LLVM IR as well. Then I suggest the following (and I can

Re: [fpc-devel] jsonrpc - does it still work?

2023-11-25 Thread Michael Van Canneyt via fpc-devel
On Fri, 24 Nov 2023, Joost van der Sluis via fpc-devel wrote: Hi all, I'm playing with json-rpc but can't get it to work. I've tried the examples in fcl-web/examles/jsonrpc. I couldn't follow the readme as there are no lpi-files, so that the rttirpc.lpg does not work. But also this fails:

Re: [fpc-devel] jsonrpc - does it still work?

2023-11-24 Thread Michael Van Canneyt via fpc-devel
On Fri, 24 Nov 2023, Joost van der Sluis via fpc-devel wrote: Hi all, I'm playing with json-rpc but can't get it to work. I've tried the examples in fcl-web/examles/jsonrpc. I couldn't follow the readme as there are no lpi-files, so that the rttirpc.lpg does not work. But also this fails:

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-13 Thread Michael Van Canneyt via fpc-devel
On Mon, 13 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 13.11.2023 0:14, Michael Van Canneyt via fpc-devel пишет: On Sun, 12 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 12.11.2023 19:44, Michael Van Canneyt via fpc-devel пишет: On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-12 Thread Michael Van Canneyt via fpc-devel
On Sun, 12 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 12.11.2023 19:44, Michael Van Canneyt via fpc-devel пишет: On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Is there any estimation how much will it take to be fixed? No, since I don't even know yet what the fix

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-12 Thread Michael Van Canneyt via fpc-devel
On Sun, 12 Nov 2023, Florian Klämpfl via fpc-devel wrote: Am 12.11.2023 um 17:44 schrieb Michael Van Canneyt via fpc-devel : On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Is there any estimation how much will it take to be fixed? No, since I don't even know yet what

Re: [fpc-devel] Build failure in FPC Build repository, attn. Florian

2023-11-12 Thread Michael Van Canneyt via fpc-devel
On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Is there any estimation how much will it take to be fixed? No, since I don't even know yet what the fix is. If it will take too long, I would like to suggest to temporarily disable generation of documentation in order to have

Re: [fpc-devel] Build error, main branch, compiler/options.pas 889:33

2023-11-11 Thread Michael Van Canneyt via fpc-devel
On Fri, 10 Nov 2023, drichards--- via fpc-devel wrote: I am getting an incorrect type error at line 889 column 33 in compiler/options.pas. This is the , following the parameter More to the function Copy. More is defined as a String. I do not understand why the function Copy would

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-09 Thread Michael Van Canneyt via fpc-devel
On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 03.11.2023 17:34, Michael Van Canneyt via fpc-devel пишет: On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 03.11.2023 17:05, Michael Van Canneyt via fpc-devel пишет: On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote

Re: [fpc-devel] Request for review of patch for security risk in fcl-web/openssl

2023-11-05 Thread Michael Van Canneyt via fpc-devel
On Sat, 4 Nov 2023, Peter via fpc-devel wrote: Hi, Issue 40479 is about a security risk when OpenSSL is used in fcl-web (TFPHTTPClient). Using the current source/trunk, TLS certificates having a wrong hostname are accepted, while they should be rejected. An easy patch for this is

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-03 Thread Michael Van Canneyt via fpc-devel
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: For the moment, simply disable the building of the PDF docs. The problem is, in our CI we rely on precompiled FPC snapshot TAR installers in order to save time when updating an image. So no new installer, no new FPC. Well, all I can

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-03 Thread Michael Van Canneyt via fpc-devel
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: 03.11.2023 17:05, Michael Van Canneyt via fpc-devel пишет: On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Currently builds in FPC Build repository are failing for FPC main branch: https://gitlab.com

Re: [fpc-devel] Build failure in FPC Build repository

2023-11-03 Thread Michael Van Canneyt via fpc-devel
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Currently builds in FPC Build repository are failing for FPC main branch: https://gitlab.com/freepascal.org/fpc/build/-/pipelines I am aware. I cannot build the docs myself. The problem is: Recently the documentation became

Re: [fpc-devel] Request for review of patch for issue 40261

2023-10-02 Thread Michael Van Canneyt via fpc-devel
On Sat, 30 Sep 2023, Bart via fpc-devel wrote: Hi, Issue 40261 is about TStrings.AddObject issueing 2 consecutive OnChange events (and in the first one the to be added object is unassigned when accessing Objects[] property) when using InsertObject, AddObject and AddPair. This is Delphi

Re: [fpc-devel] Recent changes break distclean for utils

2023-08-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Aug 2023, Mattias Gaertner via fpc-devel wrote: On 18.08.23 09:36, Michael Van Canneyt via fpc-devel wrote: [...] After doing "make disctlean" I still have many ppu files left: ./compiler/x86_64/units/x86_64-linux/cutils.ppu ... ./compiler/x86_64/lazbuild/nobj.ppu

Re: [fpc-devel] Recent changes break distclean for utils

2023-08-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Aug 2023, Mattias Gaertner via fpc-devel wrote: On 18.08.23 09:36, Michael Van Canneyt via fpc-devel wrote: [...] After doing "make disctlean" I still have many ppu files left: ./compiler/x86_64/units/x86_64-linux/cutils.ppu ... ./compiler/x86_64/lazbuild/nobj.ppu

Re: [fpc-devel] Recent changes break distclean for utils

2023-08-18 Thread Michael Van Canneyt via fpc-devel
On Fri, 18 Aug 2023, Maxim Ganetsky via fpc-devel wrote: 16.08.2023 4:29, Garry Wood via fpc-devel пишет: Hello, Just letting you know that some recent changes seem to have broken “make distclean” for source/utils Please create a bug report. Makefile.fpc in the source/utils folder

Re: [fpc-devel] specialization with type alias, bug or feature

2023-08-17 Thread Michael Van Canneyt via fpc-devel
On Thu, 17 Aug 2023, Mattias Gaertner via fpc-devel wrote: Hi, FPC and Delphi handle type alias differently and I wonder if this was deliberate. type TMyDouble = type double; TBird = class a: T; end; TDoubleBird = TBird; TMyDoubleBird = TBird; Both FPC and Delphi create

Re: [fpc-devel] Just to confirm, "with" behaviour expected

2023-08-14 Thread Michael Van Canneyt via fpc-devel
On Mon, 14 Aug 2023, Martin Frb via fpc-devel wrote: In the below code, the array is resized (and more important relocated in mem) inside the function "bar". The commented line (without "with") works as expected. The "with" line has a different behaviour. I guess it is by design. Just

Re: [fpc-devel] Unicode RTL

2023-07-28 Thread Michael Van Canneyt via fpc-devel
On Fri, 28 Jul 2023, Adriaan van Os via fpc-devel wrote: Michael Van Canneyt via fpc-devel wrote: Hello, I have just completed phase one of the "Unicode RTL" effort. I object to the name "Unicode" RTL. Where people talk about what they call "Unicode" they

Re: [fpc-devel] Unicode RTL

2023-07-28 Thread Michael Van Canneyt via fpc-devel
On Fri, 28 Jul 2023, Mattias Gaertner via fpc-devel wrote: On 24.07.23 21:49, Michael Van Canneyt via fpc-devel wrote: [...] Subtarget support is explained in more detail here: https://wiki.freepascal.org/FPC_Subtarget_Support * compile the various Lazarus widgetsets into different

[fpc-devel] FPC compiler error messages file update

2023-07-27 Thread Michael Van Canneyt via fpc-devel
Hello, We're preparing FPC fixes release 3.2.4. There are some new error messages in the compiler/msg/errore.msg file, they need to be translated to other available languages: errorct.msg (Catalan) errorda.msg (Danish) errord.msg (German, CP 850) errordu.msg (German, UTF8) errores.msg

Re: [fpc-devel] Unicode RTL

2023-07-24 Thread Michael Van Canneyt via fpc-devel
On Mon, 24 Jul 2023, Kirinn via fpc-devel wrote: Hi, A "unicode" RTL is of course great for targeting legacy Windows platforms, but for those of us on Linux, UTF-8 is the way. It is not only for legacy windows platforms. The target platform is secondary. What to use depends more on your

[fpc-devel] Unicode RTL

2023-07-24 Thread Michael Van Canneyt via fpc-devel
Hello, I have just completed phase one of the "Unicode RTL" effort. The 'Unicode RTL' is an effort to be more Delphi compatible: - Char = Unicode Char and String = UnicodeString - Provide dotted filenames. Basically closer to the RTL as it exists in more recent versions of Delphi

Re: [fpc-devel] Maybe room for better documentation? open array as var param

2023-07-20 Thread Michael Van Canneyt via fpc-devel
On Thu, 20 Jul 2023, Sven Barth via fpc-devel wrote: It's IMO probably better to outright forbid passing open array by reference. There are valid use cases for that. E.g. multiply a slice of a dynamic array by two or whatever. And forbidding var would solve nothing, see below. printing

Re: [fpc-devel] Maybe room for better documentation? open array as var param

2023-07-20 Thread Michael Van Canneyt via fpc-devel
On Thu, 20 Jul 2023, Martin Frb via fpc-devel wrote: For const param, it is well documented that the value (that includes the variable that is passed) must not be changed. But for "var param"? Well maybe, but not explicit

Re: [fpc-devel] cthreads and fpc.cfg?

2023-07-19 Thread Michael Van Canneyt via fpc-devel
On Wed, 19 Jul 2023, Martin Frb via fpc-devel wrote: On 19/07/2023 10:22, Michael Van Canneyt via fpc-devel wrote: The error is logical. What is not logical is that it pops up now. By all logic, we should have seen this error pop up as early as 2016. Why it pops up only now is a mystery

Re: [fpc-devel] cthreads and fpc.cfg?

2023-07-19 Thread Michael Van Canneyt via fpc-devel
On Wed, 19 Jul 2023, Maxim Ganetsky via fpc-devel wrote: 19.07.2023 3:25, Maxim Ganetsky via fpc-devel пишет: 19.07.2023 0:15, Martin Frb via fpc-devel пишет: On 18/07/2023 22:56, Martin via fpc-devel wrote: Using 33dba315366ec3002e062c3aa6dcb15b88356580 (3.3.1) My fpc.cfg looks like this

Re: [fpc-devel] Error: (3069) Call by var for arg no. xx has to match exactly: Got "ShortString" expected "AnsiString"

2023-07-16 Thread Michael Van Canneyt via fpc-devel
On Sun, 16 Jul 2023, Maxim Ganetsky via fpc-devel wrote: 16.07.2023 20:08, Michael Van Canneyt via fpc-devel пишет: On Sun, 16 Jul 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Recent changes in FPC `main` led to the following errors when building some code in Lazarus tree: Error

Re: [fpc-devel] Error: (3069) Call by var for arg no. xx has to match exactly: Got "ShortString" expected "AnsiString"

2023-07-16 Thread Michael Van Canneyt via fpc-devel
On Sun, 16 Jul 2023, Maxim Ganetsky via fpc-devel wrote: Hello. Recent changes in FPC `main` led to the following errors when building some code in Lazarus tree: Error: (3069) Call by var for arg no. xx has to match exactly: Got "ShortString" expected "AnsiString" See:

Re: [fpc-devel] BUG REPORT: Fail to compile when using the out keyword instead of var

2023-06-19 Thread Michael Van Canneyt via fpc-devel
On Sun, 18 Jun 2023, Dylan Lamb via fpc-devel wrote: [image: fpcbug.png] This is not a bug. You're using mode fpc, in which the "out" keyword is not supported. You have 3 possibilities to activate this: Use mode objfpc: {$mode objfpc} Use mode delphi: {$mode delphi} or enable the use

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Michael Van Canneyt via fpc-devel
On Wed, 1 Mar 2023, Mattias Gaertner via fpc-devel wrote: On Wed, 1 Mar 2023 14:10:28 +0100 Sven Barth via fpc-devel wrote: [...] > I can't remember the proverb that Florian used, but it essentially > boils down to very small changes, individually not amounting to > much, but which

Re: [fpc-devel] Unexpected "Range check error while evaluating constants" when compiling for Win64

2023-02-13 Thread Michael Van Canneyt via fpc-devel
On Mon, 13 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 12.02.2023 23:08, Bart via fpc-devel wrote: On Sun, Feb 12, 2023 at 10:47 PM Jonas Maebe via fpc-devel wrote: Afaik it's because "default" doesn't support qword values, iirc because of (at least old) Delphi compatibility. OK, I

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 10:22, Michael Van Canneyt via fpc-devel wrote: On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 10:15, Michael Van Canneyt via fpc-devel wrote: On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 10:15, Michael Van Canneyt via fpc-devel wrote: On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: I myself cannot think of any real use case of constref other than hacks like the FreeAndNil in recent Delphi

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Hairy Pixels via fpc-devel wrote: On Feb 2, 2023, at 3:57 PM, Adriaan van Os via fpc-devel wrote: - under what circumstances (and in what compiler mode) does FPC pass large (say 1 MB or 1 GB) "const" parameters by value (which is extremely inefficient) ? - for what

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Ondrej Pokorny via fpc-devel wrote: On 02.02.2023 07:42, Sven Barth via fpc-devel wrote: The case when you *need* a constant reference. Case in point: the passing of TGuid in IInterface.QueryInterface. Delphi code relies on it being a reference, but “const” does not

Re: [fpc-devel] Question on constref

2023-02-02 Thread Michael Van Canneyt via fpc-devel
On Thu, 2 Feb 2023, Sven Barth via fpc-devel wrote: Am 02.02.2023 um 02:09 schrieb Hairy Pixels: On Feb 2, 2023, at 4:38 AM, Sven Barth wrote: Which types are passed by-value or by-reference when using const is determined by the size of the record and the types of the fields based on

Re: [fpc-devel] Question on constref

2023-02-01 Thread Michael Van Canneyt via fpc-devel
On Wed, 1 Feb 2023, Sven Barth via fpc-devel wrote: Am 01.02.2023 um 11:30 schrieb Bart via fpc-devel: I thought that constref would be OK for that (the word constref suggests to me tah the paramter will be treated (by me) to be a constant, and that it shall be passed by reference in all

Re: [fpc-devel] Question on constref

2023-02-01 Thread Michael Van Canneyt via fpc-devel
On Wed, 1 Feb 2023, Hairy Pixels via fpc-devel wrote: On Feb 1, 2023, at 8:27 PM, Michael Van Canneyt via fpc-devel wrote: That's exactly what Adriaan is saying. With const the compiler can choose. With constref, you force it not to copy. But this is not so efficient for small parameter

Re: [fpc-devel] Question on constref

2023-02-01 Thread Michael Van Canneyt via fpc-devel
On Wed, 1 Feb 2023, Hairy Pixels via fpc-devel wrote: On Feb 1, 2023, at 8:16 PM, Adriaan van Os via fpc-devel wrote: Because, if e.g. the byte-size of a parameter is such that it fits into a CPU register, then passing the parameter itself is more efficient than passing a reference to

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-17 Thread Michael Van Canneyt via fpc-devel
On Mon, 16 Jan 2023, Wayne Sherman via fpc-devel wrote: On Mon, Jan 16, 2023 at 12:16 PM Wayne Sherman wrote: I need clarification about the auto generated class index specifiers. Do they always start at 0 in each descendant class, or are they unique across all descendant classes?

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-15 Thread Michael Van Canneyt via fpc-devel
On Sun, 15 Jan 2023, Wayne Sherman wrote: On Sun, Jan 15, 2023 at 9:24 AM Michael Van Canneyt wrote: On Sat, 14 Jan 2023, Wayne Sherman wrote: I see a couple of problems TBaseObject.SaveToJSON 1) TBaseObject.SaveToJSON cannot distinguish properties that are part of the REST protocol from

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-15 Thread Michael Van Canneyt via fpc-devel
On Sat, 14 Jan 2023, Wayne Sherman wrote: I see a couple of problems TBaseObject.SaveToJSON 1) TBaseObject.SaveToJSON cannot distinguish properties that are part of the REST protocol from properties that are not part of it. It only knows that properties which have been modified are part of

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-14 Thread Michael Van Canneyt via fpc-devel
On Sat, 14 Jan 2023, Wayne Sherman wrote: On Sat, Jan 14, 2023 at 12:36 PM Michael Van Canneyt wrote: On Sat, 14 Jan 2023, Wayne Sherman wrote: On Sat, Jan 14, 2023 at 10:34 AM Michael Van Canneyt wrote: On Sat, 14 Jan 2023, Wayne Sherman wrote: 2) Doesn't each object already have

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-14 Thread Michael Van Canneyt via fpc-devel
On Sat, 14 Jan 2023, Wayne Sherman wrote: On Sat, Jan 14, 2023 at 10:34 AM Michael Van Canneyt wrote: On Sat, 14 Jan 2023, Wayne Sherman wrote: 2) Doesn't each object already have the parent properties included in its own properties by inheritance? Why this question ? An object does

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-14 Thread Michael Van Canneyt via fpc-devel
On Sat, 14 Jan 2023, Wayne Sherman wrote: On Fri, Jan 13, 2023 at 11:48 PM Michael Van Canneyt wrote: Markpropertychanged is called in the setter of the properties generated by the code generator: Check all generated units. Thanks for your explanations, it is getting more clear how

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 13 Jan 2023, Wayne Sherman via fpc-devel wrote: Is there a better way to track changed TBaseObject properties (and get rid of property index declarations)? Not to my knowledge. If there had been, I would have used it. The advantage of the index as opposed to using a custom assigned

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 13 Jan 2023, Wayne Sherman via fpc-devel wrote: Some related misunderstandings: 1) When StopRecordPropertyChanges is called it destroys all the change records (stored in TBits) in which case SaveToJSON saves ALL the properties even if they were not loaded or modified previously.

Re: [fpc-devel] restbase.pp LoadFromJSON calling StopRecordPropertyChanges;

2023-01-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 13 Jan 2023, Wayne Sherman via fpc-devel wrote: I am trying to check the googleapiconv "TGoogleRestDescription" object contents (which is descended from restbase TBaseObject) by using "SaveToJSON". But it always saves an empty object, even when the properties have values assigned to

Re: [fpc-devel] Incorrect hint (5023) "unit not used", if unit is only used in a conditional compiler expression (like: {$IF ..})

2023-01-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 13 Jan 2023, Bart via fpc-devel wrote: Consider the follwoing program: === program test; uses Version; begin {$if TheVersion >= 1} writeln('Version 1 or higher'); {$else} writeln('Version < 1'); {$endif} end. === unit version; interface const TheVersion = 1; implementation

Re: [fpc-devel] Unicode RTL for FPC

2023-01-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 13 Jan 2023, Tomas Hajny via fpc-devel wrote: On 2023-01-13 11:22, Mattias Gaertner via fpc-devel wrote: On Sun, 8 Jan 2023 08:46:37 +0100 (CET) Michael Van Canneyt via fpc-devel wrote: [...] Should have been make install SUB_TARGET=unicodertl PP=path/to/the/new/compiler

Re: [fpc-devel] Unicode RTL for FPC

2023-01-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 13 Jan 2023, Mattias Gaertner via fpc-devel wrote: On Sun, 8 Jan 2023 08:46:37 +0100 (CET) Michael Van Canneyt via fpc-devel wrote: [...] Should have been make install SUB_TARGET=unicodertl PP=path/to/the/new/compiler This does not install the new compiler, so I used

Re: [fpc-devel] Why: "Can't take the address of constant expressions" here?

2023-01-12 Thread Michael Van Canneyt via fpc-devel
On Wed, 11 Jan 2023, Bart via fpc-devel wrote: Given the following program (an excerpt form a test program for a bugreport about the fpwidestring unit): === program test; {$codepage utf8} {$mode objfpc} {$h+} uses FpWideString; var WSource: WideString = 'source'; USource: UnicodeString

Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Michael Van Canneyt via fpc-devel
On Mon, 9 Jan 2023, Ondrej Pokorny wrote: On 09.01.2023 09:08, Michael Van Canneyt wrote: On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free

Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Michael Van Canneyt via fpc-devel
On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Hello! Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free to add it somewhere in fcl-net. Michael.

Re: [fpc-devel] Unicode RTL for FPC

2023-01-07 Thread Michael Van Canneyt via fpc-devel
On Sun, 8 Jan 2023, Mattias Gaertner via fpc-devel wrote: On Fri, 6 Jan 2023 18:05:43 +0100 (CET) Michael Van Canneyt via fpc-devel wrote: [...] - to create a Unicode RTL, in the rtl directory do a make clean all SUB_TARGET=unicodertl PP=path/to/the/new/compiler - if that worked, you

Re: [fpc-devel] Unicode RTL for FPC

2023-01-07 Thread Michael Van Canneyt via fpc-devel
On Sat, 7 Jan 2023, Mattias Gaertner via fpc-devel wrote: On Fri, 6 Jan 2023 18:05:43 +0100 (CET) Michael Van Canneyt via fpc-devel wrote: [...] - to create a Unicode RTL, in the rtl directory do a make clean all SUB_TARGET=unicodertl PP=path/to/the/new/compiler The "make

Re: [fpc-devel] Unicode RTL for FPC

2023-01-07 Thread Michael Van Canneyt via fpc-devel
On Sat, 7 Jan 2023, Mattias Gaertner via fpc-devel wrote: On Fri, 6 Jan 2023 18:05:43 +0100 (CET) Michael Van Canneyt via fpc-devel wrote: [...] For those that wish to help in testing: - Update your git clone I used a fresh clone. - switch to branch unicodertl. I used git checkout

Re: [fpc-devel] Unicode RTL for FPC

2023-01-06 Thread Michael Van Canneyt via fpc-devel
On Fri, 6 Jan 2023, Adriaan van Os via fpc-devel wrote: Michael Van Canneyt via fpc-devel wrote: - String = UnicodeString, Char=WideChar UnicodeString ? ? I don't know what that is supposed to be. We have UCS-2, UCS-4, UTF-16 and UTF-8 Some marketing people, not understanding anything

[fpc-devel] Unicode RTL for FPC

2023-01-06 Thread Michael Van Canneyt via fpc-devel
Hello, I'm currently working for a company (Tixeo.com) that is preparing to use FPC to recompile their flagship product (written in Delphi) for certain targets. As part of this work, we're striving to make the Free Pascal RTL and Packages more compatible with recent Delphis. That means: -

Re: [fpc-devel] googleapiconv issues

2023-01-05 Thread Michael Van Canneyt via fpc-devel
On Thu, 5 Jan 2023, Wayne Sherman via fpc-devel wrote: The google api binding generator "googleapiconv" is generating empty files for the api pascal bindings and it also causes access violations randomly. I have not found the issue with AVs yet, but I found out why it is creating empty

Re: [fpc-devel] threads vs widestringmanager / crash

2022-12-19 Thread Michael Van Canneyt via fpc-devel
On Mon, 19 Dec 2022, Ondrej Pokorny via fpc-devel wrote: On 19.12.2022 09:51, Michael Van Canneyt via fpc-devel wrote: If you can prepare a simple sample program that shows the problem, I can try to look into it. Maybe a fresh pair of eyes sees more than one pair of eyes? You don't need

Re: [fpc-devel] threads vs widestringmanager / crash

2022-12-19 Thread Michael Van Canneyt via fpc-devel
On Mon, 19 Dec 2022, Ondrej Pokorny via fpc-devel wrote: On 19.12.2022 07:42, Sven Barth via fpc-devel wrote: The RTL assumes that it does not have to deal with threads during the initialization of the System unit. So even if the symptom of the crash is fixed in that location it isn't said

Re: [fpc-devel] Sorting tests

2022-11-29 Thread Michael Van Canneyt via fpc-devel
On Tue, 29 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Surely that's a bug in the comparison functions that should be fixed and not something that can be blamed on introsort.  If a comparison function is faulty, then pretty nuch any sorting algorithm can be considered to have

Re: [fpc-devel] Sorting tests

2022-11-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Nov 2022, Sven Barth via fpc-devel wrote: Stefan Glienke via fpc-devel schrieb am Mo., 28. Nov. 2022, 00:20: Probably not unless FPC has something similar to https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.IsManagedType (that function among a few others is

  1   2   3   4   5   6   7   8   9   10   >