Re: [fpc-pascal] method-definition

2023-12-17 Thread Sven Barth via fpc-pascal
Michael Van Canneyt via fpc-pascal schrieb am Sa., 16. Dez. 2023, 09:43: > The requirement for parameters in record constructors I guess comes from > C++ builder by Embarcadero. > There are some limitations imposed by C++. > > Whether they could be dropped in FPC is something Sven Barth should

Re: [fpc-pascal] method-definition

2023-12-16 Thread Michael Van Canneyt via fpc-pascal
On Sat, 16 Dec 2023, Hairy Pixels via fpc-pascal wrote: On Dec 15, 2023, at 8:56 PM, Adriaan van Os via fpc-pascal wrote: What complicates things, is that many conflicting rules have the same name in the Language Reference. For example, conceptually we have object-methods,

Re: [fpc-pascal] method-definition

2023-12-15 Thread Hairy Pixels via fpc-pascal
> On Dec 15, 2023, at 8:56 PM, Adriaan van Os via fpc-pascal > wrote: > > What complicates things, is that many conflicting rules have the same name in > the Language Reference. For example, conceptually we have object-methods, > record-methods, class-methods, interface-methods and

Re: [fpc-pascal] method-definition

2023-12-15 Thread Mattias Gaertner via fpc-pascal
On 15.12.23 16:00, Martin Frb via fpc-pascal wrote: [...] However, a method can be reintroduced, and be virtual/abstract. type   TFoo = class     procedure Bar; virtual; abstract;   end;   TFoo2 = class(TFoo)     procedure Bar; reintroduce; virtual; abstract;   end; Can that make

Re: [fpc-pascal] method-definition

2023-12-15 Thread Martin Frb via fpc-pascal
On 15/12/2023 14:56, Adriaan van Os via fpc-pascal wrote: I am puzzled by the syntax rule in Chapter 6. Classes of the FreePascal Language Reference (version 3.2.0) Section 6.1 Class definitions has method-definition = [ "CLASS" ] ( function-header | procedure-header |

[fpc-pascal] method-definition

2023-12-15 Thread Adriaan van Os via fpc-pascal
I am puzzled by the syntax rule in Chapter 6. Classes of the FreePascal Language Reference (version 3.2.0) Section 6.1 Class definitions has method-definition = [ "CLASS" ] ( function-header | procedure-header | constructor-header | destructor-header ) ";" [ ( ( ( "virtual" | "dynamic" ) [