Re: [fpc-pascal] Default record const values

2018-11-13 Thread Sven Barth via fpc-pascal
Am 14.11.2018 um 02:05 schrieb John Doe: On Mon, Nov 12, 2018 at 1:51 AM Sven Barth via fpc-pascal > wrote: The compiler now correctly rejects such declarations with a "Type is not completely defined error". Making this not work is a ridiculous

Re: [fpc-pascal] Constants in generics

2018-11-13 Thread Ryan Joseph
I think I have this done except for cleanup. Here’s the status: - Integer,string,real,set and nil constant for parameters. - Consts can have type restrictions which correspond to the above types. - Const can be assigned to from generic const params. - PPU loading. Technical compiler issues: - I

Re: [fpc-pascal] Default record const values

2018-11-13 Thread John Doe
On Mon, Nov 12, 2018 at 1:51 AM Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > The compiler now correctly rejects such declarations with a "Type is > not completely defined error". > Making this not work is a ridiculous removal of a feature for no logical reason that

Re: [fpc-pascal] Uniform initialization?

2018-11-13 Thread Vojtěch Čihák
IMO 100% Delphi compatibility was important some 10 years back when Kylix was discontinued and peope wanted to port their old Delphi projects to Linux. From that time boh FPC and Lazarus are mature enough and everyone who started a new project after - let's say - 2008 had to do the decision:

Re: [fpc-pascal] Uniform initialization?

2018-11-13 Thread Martin Wynne
Delphi mode is very useful. It means old code from earlier versions of Delphi (in my case Delphi5) can be open-sourced and made available via Lazarus to anyone interested, without their needing to get an expensive copy of the latest Delphi. Martin.