Re: [fpc-pascal] Record Constructors which differ in parameter lists

2023-05-09 Thread Michael Van Canneyt via fpc-pascal
On Tue, 9 May 2023, Thomas Kurz via fpc-pascal wrote: Hello, let's take the following example: program Project1; {$MODE OBJFPC} {$MODESWITCH ADVANCEDRECORDS} {$MODESWITCH TYPEHELPERS} type TVec3f = record x, y, z: Double; constructor Create (a1, a2, a3: Double); end; type TSomething =

[fpc-pascal] Record Constructors which differ in parameter lists

2023-05-09 Thread Thomas Kurz via fpc-pascal
Hello, let's take the following example: program Project1; {$MODE OBJFPC} {$MODESWITCH ADVANCEDRECORDS} {$MODESWITCH TYPEHELPERS} type TVec3f = record x, y, z: Double; constructor Create (a1, a2, a3: Double); end; type TSomething = type TVec3f; type TSomethingHelper = type helper for