Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Michael Van Canneyt via fpc-devel
On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote: Hi all, I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show the results. But it can only handle JUnit-like xml. Does someone already have something lying around to convert the fpcunit format into junit? Is

Re: [fpc-devel] jUnit output for fpcunit

2021-12-29 Thread Michael Van Canneyt via fpc-devel
On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote: Op 29-12-2021 om 16:05 schreef Michael Van Canneyt via fpc-devel: On Wed, 29 Dec 2021, Joost van der Sluis via fpc-devel wrote: I'm trying to run my fpcunit unit-tests on Gitlab, and let Gitlab show the results. But i

Re: [fpc-devel] Now sure why this raises Runtime Error 216

2022-01-06 Thread Michael Van Canneyt via fpc-devel
On Thu, 6 Jan 2022, Ozz Nixon via fpc-devel wrote: Procedure Make_Language_File( Description,MenuPath,TextPath,QuestPath:String; Enabled:Boolean;SecurityLevel:Byte;Flags:Longint); Var FileSize:Longint; Begin Writeln('Language_File empty size is ',SizeOf(L)); FileSize:=0; Descripti

Re: [fpc-devel] I've asked this before, but perhaps I wasn't specific enough that time: what do I *personally*, specifically need to do to ensure that a native Windows 64-bit build winds up on the FPC

2022-01-12 Thread Michael Van Canneyt via fpc-devel
On Wed, 12 Jan 2022, Mattias Gaertner via fpc-devel wrote: On Wed, 12 Jan 2022 23:20:34 +0100 Sven Barth via fpc-devel wrote: [..] When compiling from a target supporting Extended to one only supporting Double there isn't a loss of precision when calculating values at compile time. The othe

Re: [fpc-devel] syshelpers patches

2022-01-21 Thread Michael Van Canneyt via fpc-devel
On Fri, 21 Jan 2022, Zeljko Avramovic via fpc-devel wrote: [Probably for @mvancanneyt] I have just submitted patches for syshelpers here: https://gitlab.com/freepascal.org/fpc/source/-/issues/39268#note_810963784 It's a closed thread and I can not reopen it, so maybe it would be better if I

Re: [fpc-devel] syshelpers patches

2022-01-22 Thread Michael Van Canneyt via fpc-devel
On Sat, 22 Jan 2022, Zeljko Avramovic via fpc-devel wrote: Done. https://gitlab.com/freepascal.org/fpc/source/-/issues/39541 Thank you. I already applied 2 patches, I still need to commit the examples. Michael. ___ fpc-devel maillist - fpc-deve

Re: [fpc-devel] FPC download on MACOS Monterey does not create an FPC app nor an fpsrc library?

2022-02-07 Thread Michael Van Canneyt via fpc-devel
On Sun, 6 Feb 2022, Pieter van Engen via fpc-devel wrote: Hallo, I installed an new MacMini with MACOS Monterey, installed XCCODE en XCODE tools, then downloaded and installed: ppc-3.2.0.intel-macosx.dmg started that, it finished with INSTALLATION COMPLETED! But alas there was no FPC app a

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2022-03-14 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Mar 2022, Wayne Sherman via fpc-devel wrote: On Tue, Jun 30, 2020 at 12:47 AM Michael Van Canneyt wrote: The problem with the service account is that you must create a JWT Token. FPC does not yet have a unit that can generate *and sign* a JWT Token. I had a little time this we

Re: [fpc-devel] Google APIs - Authenticate using a service account?

2022-03-16 Thread Michael Van Canneyt via fpc-devel
On Mon, 14 Mar 2022, Wayne Sherman via fpc-devel wrote: On Mon, May 10, 2021 at 7:08 PM Wayne Sherman wrote: The Google API supports the following signing algorithms: https://cloud.google.com/iot/docs/how-tos/credentials/jwts JWT RS256 (RSASSA-PKCS1-v1_5 using SHA-256 RFC 7518 sec 3.3).

Re: [fpc-devel] TIniFile with option ifoWriteStringBoolean

2022-03-16 Thread Michael Van Canneyt via fpc-devel
On Wed, 16 Mar 2022, Bart via fpc-devel wrote: Hi, User Nimral in the wiki noted this: If you specify ifoWriteStringBoolean in Options for TIniFile _and_ you forget to assign values to BoolTrueStrings/BoolFalseStrings, then writing and reading boolean values is not symmetrical. Writing a boo

Re: [fpc-devel] case is

2022-03-23 Thread Michael Van Canneyt via fpc-devel
On Wed, 23 Mar 2022, Mattias Gaertner via fpc-devel wrote: On Wed, 23 Mar 2022 22:20:38 +0700 Hairy Pixels via fpc-devel wrote: [...] > Did you use multiple "is" or did you check for sorted and use one > loop? No it’s just like a the case of string syntax which checks for equality with C

Re: [fpc-devel] Issue in FPDOC Editor or Makeskel?

2022-03-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Mar 2022, Zeljko Avramovic via fpc-devel wrote: I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. Basically, FPDOC Ed

Re: [fpc-devel] Issue in FPDOC Editor or Makeskel?

2022-03-28 Thread Michael Van Canneyt via fpc-devel
On Mon, 28 Mar 2022, Zeljko Avramovic via fpc-devel wrote: I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. Basically, FPDOC Ed

Re: [fpc-devel] TShiftState

2022-05-07 Thread Michael Van Canneyt via fpc-devel
On Sat, 7 May 2022, Mattias Gaertner via fpc-devel wrote: Hi, Delphi has some extra TShiftState enums: ssTouch, ssPen, ssHorizontal https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TShiftState I propose for fpc to add these three and add an alias constant ssCommand = ss

Re: [fpc-devel] qoi image file format support

2022-05-07 Thread Michael Van Canneyt via fpc-devel
On Sat, 7 May 2022, Marģers . via fpc-devel wrote: There is this super new, super fast and super what not image format. I have added support for fcl-images. attached zip file contains: 1) read and write support in files qoif/qoicomn.pas qoif/fpwriteqoi.pas qoif/fpreadqoi.pas 2) example of r

Re: [fpc-devel] Type+multi helpers overload bug

2022-05-08 Thread Michael Van Canneyt via fpc-devel
On Sun, 8 May 2022, Hairy Pixels via fpc-devel wrote: Basically it looks like multi helpers don’t actually work with overloaded methods and simply choses the last helper declared. Should I fix this? Seems unlikely we would not notice this before but maybe we did. {$modeswitch typehelpers} {

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-11 Thread Michael Van Canneyt via fpc-devel
Applied, thank you very much ! Michael. On Sat, 11 Jun 2022, Bart via fpc-devel wrote: On Wed, Jun 8, 2022 at 3:24 PM Marco van de Voort via fpc-devel wrote: I doubt that there are mission critical convutils programs out there, given the fact that it took 10+ years to find out the temper

Re: [fpc-devel] Differences in Regular Expression handling between FPC 3.3.1 and 3.2.0

2022-06-29 Thread Michael Van Canneyt via fpc-devel
On Wed, 29 Jun 2022, Russ via fpc-devel wrote: Hi, It looks like in FPC trunk that regular expressions use unicode properties and is returning unicode results as it is now built, because {$DEFINE Unicode} is now defined in the regexpr unit. That is in error; I reverted that. The define

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-04 Thread Michael Van Canneyt via fpc-devel
On Mon, 4 Jul 2022, Joost van der Sluis via fpc-devel wrote: Hi all, I have a very small application, see below. One procedure is not called at all. But when I compile with ppcx64 -XX -CX testcfi.pp The P$TESTCFI_$$_NEVERCALLES symbol is still in the executable. On Windows (internal li

Re: [fpc-devel] C library header - var vs pointer for function arguments

2022-08-03 Thread Michael Van Canneyt via fpc-devel
On Thu, 4 Aug 2022, gabor via fpc-devel wrote: I'd like to provide some fixes for packages that are headers for c libraries. When and should I use the "var" argument for function arguments that return a value, or should I always use pointers (excluding arguments that might accept nil)? Eg

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Juha Manninen via fpc-devel wrote: On Thu, Aug 11, 2022 at 9:37 PM Martin Frb via fpc-devel < fpc-devel@lists.freepascal.org> wrote: fpc code is still "unexpected". It takes into account the MinValue type TMyEnum = (a=5, b=7); GetEnumName(pt, 5) // a GetEnumName(pt, 6

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Martin Frb via fpc-devel wrote: On 16/08/2022 09:37, Michael Van Canneyt via fpc-devel wrote: On Tue, 16 Aug 2022, Juha Manninen via fpc-devel wrote: And function GetEnumValue() is buggy. It is not buggy. It does not support enumerateds with gaps, because RTTI does

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Ondrej Pokorny via fpc-devel wrote: --- code end Run it in Delphi and FPC and compare the outputs: Delphi output: PropCount: 0 Property info is null FPC output: PropCount: 1 Property name: Fruit Property kind: tkEnumeration As you can see FPC creates a valid PropInfo

Re: [fpc-devel] Gaps in a non-contiguous enum

2022-08-16 Thread Michael Van Canneyt via fpc-devel
On Tue, 16 Aug 2022, Ondrej Pokorny via fpc-devel wrote: Am 16.08.2022 um 13:19 schrieb Michael Van Canneyt via fpc-devel: On Tue, 16 Aug 2022, Ondrej Pokorny via fpc-devel wrote: --- code end Run it in Delphi and FPC and compare the outputs: Delphi output: PropCount: 0 Property info is

Re: [fpc-devel] Fwd: [Lazarusdev] Moving issue 39853 to FPC project

2022-08-17 Thread Michael Van Canneyt via fpc-devel
On Thu, 18 Aug 2022, Ondrej Pokorny via fpc-devel wrote: Hello it looks like only people with FPC developer status can move issues to the FPC project. Therefore I forward the request to fpc-devel. I moved it. Michael. ___ fpc-devel maillist -

Re: [fpc-devel] FCL streamex question

2022-08-18 Thread Michael Van Canneyt via fpc-devel
On Wed, 17 Aug 2022, MARCOU Gilles via fpc-devel wrote: Hi, following the advice of howardpc, I repost here my question from the forum (https://forum.lazarus.freepascal.org/index.php/topic,60287.0.html). Recently I wanted to rewind a file to read again a previous line. After some search

Re: [fpc-devel] Cannot build Lazarus with actual FPC main

2022-08-19 Thread Michael Van Canneyt via fpc-devel
On Fri, 19 Aug 2022, Gabor Boros via fpc-devel wrote: Hi All, With actual FPC main (61debb15) got the below error. No error with an earlier FPC main (8028a769). Any idea? make -C packager/registration make[1]: Entering directory `e:/Lazarus/main/packager/registration' E:/FPC/3.2.2/bin/i3

Re: [fpc-devel] Insufficient Dwarf info for Interfaces

2022-09-15 Thread Michael Van Canneyt via fpc-devel
On Thu, 15 Sep 2022, Martin Frb via fpc-devel wrote: https://gitlab.com/freepascal.org/fpc/source/-/issues/39904 On top of adding the functions in the interface to the dwarf info, it would be great if the compiler could also add some sort of link to the underlaying TObject. So the debugg

Re: [fpc-devel] Insufficient Dwarf info for Interfaces

2022-09-15 Thread Michael Van Canneyt via fpc-devel
On Thu, 15 Sep 2022, Martin Frb via fpc-devel wrote: On 15/09/2022 16:17, Michael Van Canneyt via fpc-devel wrote: On Thu, 15 Sep 2022, Martin Frb via fpc-devel wrote: https://gitlab.com/freepascal.org/fpc/source/-/issues/39904 On top of adding the functions in the interface to the

Re: [fpc-devel] Streaming error with a property of type Double set to +/-Inf

2022-09-23 Thread Michael Van Canneyt via fpc-devel
On Wed, 21 Sep 2022, Bart via fpc-devel wrote: Hi, When in Lazarus I set a property of type Double to -Inf or +Inf, I get a compilation error: Error: Invalid property value (at 41,17, stream offset 031A) sp.lpr(20,1) Error: Error while compiling resources -> Compile with -vd for more de

Re: [fpc-devel] Policy regarding SHL/SHR under x86

2022-10-24 Thread Michael Van Canneyt via fpc-devel
On Mon, 24 Oct 2022, J. Gareth Moreton via fpc-devel wrote: That's useful - thank you.  Michael Van Canneyt mentioend he updated the documentation for this - where is this usually located? It's not here, for example: https://www.freepascal.org/docs-html/ref/refsu45.html Daily documentation:

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, Marco van de Voort via fpc-devel wrote: On 24-11-2022 14:25, Ondrej Pokorny via fpc-devel wrote: Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Would it be better to define "SizeInt = SmallInt;" here just so it's crystal clear what size it is? Where is 'here' ? Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org h

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
Int = SmallInt; Michael. On 24/11/2022 13:52, Michael Van Canneyt via fpc-devel wrote: On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Would it be better to define "SizeInt = SmallInt;" here just so it's crystal clear what size it is? Where is

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, Marco van de Voort via fpc-devel wrote: On 24-11-2022 14:59, Michael Van Canneyt via fpc-devel wrote: SizeInt = SmallInt; (IMHO get rid of small and short in general, and simply put int8/16 instead. But that might require compiler work?) Agreed. I would also

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 compil

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 unpredicta

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] 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 n

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 sourc

[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] 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 any

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-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 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] 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] 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 t

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] 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 the

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 This

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] 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] 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. Th

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-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 modifie

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 not k

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 the par

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-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-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? TBaseObj

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] 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 para

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 case

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-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 guara

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 r

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, 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] 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] 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 accumula

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] 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: https://gitlab.

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] 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] 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] 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 https://www.freepascal.org/docs-html/ref/refsu68.html#x184-20800014.4

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

[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 (essentially

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 c

[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 (Spani

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

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] 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 want

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 differen

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 conta

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] 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 incom

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] 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: 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] 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 available,

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] 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 have

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 binar

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 wha

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 is.

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] 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] 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:

<    1   2   3   >