<br><br><div><span class="gmail_quote">On 5/31/07, <b class="gmail_sendername">Matt Emson</b> <<a href="mailto:memsom@interalpha.co.uk">memsom@interalpha.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>> taclass = class<br>> fi:integer;<br>> public<br>> property i write fi;<br>> end;<br><br>Not to pick on little details, but shouldn't that be:<br><br>property i: interger read fi;
<br><br>as the OP wanted a read only member? What you gave them was write only.<br>Maybe I misunderstood their request, if so sorry.<br><br>_______________________________________________<br>fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">
fpc-pascal@lists.freepascal.org</a><br><a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br><br>Yes, I think so too, it should be
<br><br><div style="margin-left: 40px;">property i: interger read fi;<br><br></div>and furthermore fi be private (I think that the default visibility is public...).<br>I 'm not sure, please correct me if I 'm mistaken.
<br><br>