Re: [fpc-pascal] property or public

2008-01-21 Thread Damien Gerard
On Jan 21, 2008, at 4:47 PM, Joao Morais wrote: Matt Emson wrote: Joao Morais wrote: Damien Gerard wrote: On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: I have (it would seem) a stupid question :) We have TStringList vars. User can do what he want with it. Which one

Re: [fpc-pascal] property or public

2008-01-21 Thread Joao Morais
Matt Emson wrote: Joao Morais wrote: Damien Gerard wrote: On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: 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 ? TMyClas

Re: [fpc-pascal] property or public

2008-01-21 Thread Matt Emson
Joao Morais wrote: Damien Gerard wrote: On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: 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)

Re: [fpc-pascal] property or public

2008-01-21 Thread Joao Morais
Damien Gerard wrote: On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: 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 List1: T

Re: [fpc-pascal] property or public

2008-01-21 Thread Damien Gerard
On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: 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 List1: TStringList; List2: T

Re: [fpc-pascal] property or public

2008-01-21 Thread Joao Morais
Damien Gerard wrote: 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 List1: TStringList; List2: TStringList; end; or TMyClass = class private

[fpc-pascal] property or public

2008-01-21 Thread Damien Gerard
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 List1: TStringList; List2: TStringList; end; or TMyClass = class private FList1: TString