[fpc-pascal] Open array in object constructor gives error
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat Dec 31 09:43:19 CET 2022
On Sat, 31 Dec 2022 10:35:52 +0700
Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> Why is using the open array parameter illegal using the Object type?
>
> ========================
>
> {$mode objfpc}
>
> program test;
>
> type
> TMyObject = object
> constructor Create(text: array of String);
> end;
>
> constructor TMyObject.Create(text: array of String);
> begin
> end;
>
> begin
> TMyObject.Create...
Not supported. Has nothing to do with the parameter list.
> end.
Mattias
More information about the fpc-pascal
mailing list