On 5/31/07, Matt Emson <[EMAIL PROTECTED]> wrote:


>    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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



Yes, I think so too, it should be

property i: interger read fi;

and furthermore fi be private (I think that the default visibility is
public...).
I 'm not sure, please correct me if  I 'm mistaken.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to