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

2023-08-17 Thread Maxim Ganetsky via fpc-devel
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 contains the line: CLEAN_TARGET_DIRS=$(subst /Makefile.fpc,

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

2023-08-17 Thread Mattias Gaertner via fpc-devel
On 17.08.23 20:08, Michael Van Canneyt wrote: [...] Both FPC and Delphi create different classes for TDoubleBird and TMyDoubleBird. In Delphi they are not assign compatible, in FPC they are. For example: var  a: TDoubleBird;  b: TMyDoubleBird; begin  b:=TMyDoubleBird.Create;  a:=b; //

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

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

2023-08-17 Thread Mattias Gaertner via fpc-devel
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 different classes for TDoubleBird and TMyDoubleBird. In Delphi

Re: [fpc-devel] Progress on pure functions

2023-08-17 Thread J. Gareth Moreton via fpc-devel
Getting there!  I'm having one sticking point, and that's with pure functions of the following design: procedure Factorial(N: Cardinal; out R: Cardinal); pure;   begin     if N < 2 then       R := 1     else       begin     Factorial(N - 1, R);    R *= N;       end;   end; Because of