[fpc-pascal] Constant members within class

Matt Emson memsom at interalpha.co.uk
Thu May 31 10:16:18 CEST 2007

>    taclass = class
> fi:integer;
> public
> property i write fi;
>                 end;

Not to pick on little details, but shouldn't that be:

property i: interger read fi;

as the OP wanted a read only member? What you gave them was write only.
Maybe I misunderstood their request, if so sorry.

More information about the fpc-pascal mailing list