I have (it would seem) a stupid question :)
We have TStringList vars. User can do what he want with it.
Which one is the stupid or the better way to do it ?


TMyClass = class(TObject)
public
   <snip>
   List1: TStringList;
   List2: TStringList;
end;


or


TMyClass = class
private
   FList1: TStringList;
   FList2: TStringList;

public
   property List1: TStringList read FList1;
   property List2: TStringList read FList2;
end;

--
Damien Gerard
[EMAIL PROTECTED]

Le temps n'a pas d'importance. Seul le code est important
   -- (f00ty)




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

Reply via email to