Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-07 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > Correct, but that is what Borland, CodeGear, Embarcadero and Lazarus > call "RAD development". I consider RAD just great for prototyping, > not for real-world apps that need to be maintaing my many programmers > over a decade or two. RAD promotes

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Graeme Geldenhuys
On 6 November 2011 22:28, Frank Church wrote: > If that is the case then a lot of Free Pascal and Delphi demos are teaching > bad practices because they make most members accessible externally when > there is no real reason to. I never thought about that much because I just > wanted to get my apps

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Sven Barth
On 06.11.2011 21:28, Frank Church wrote: If that is the case then a lot of Free Pascal and Delphi demos are teaching bad practices because they make most members accessible externally when there is no real reason to. I never thought about that much because I just wanted to get my apps working rat

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Frank Church
On 6 November 2011 18:33, Jonas Maebe wrote: > > On 06 Nov 2011, at 19:26, Frank Church wrote: > > > So it means that unless a field or method is in the private or protected > > section > > or published, strict private or strict protected section > > > it is automatically public? > > Yes (or publ

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Jonas Maebe
On 06 Nov 2011, at 19:26, Frank Church wrote: > So it means that unless a field or method is in the private or protected > section or published, strict private or strict protected section > it is automatically public? Yes (or published in case of {$m+}, as Michael added). Jonas _

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Frank Church
On 6 November 2011 14:43, Jonas Maebe wrote: > > On 06 Nov 2011, at 15:34, Frank Church wrote: > > > What is the difference between field declarations at the beginning of a > > class and those declared in the public section? > > There is no "the" public section. You can declare as many public (an

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Michael Van Canneyt
On Sun, 6 Nov 2011, Jonas Maebe wrote: On 06 Nov 2011, at 15:34, Frank Church wrote: What is the difference between field declarations at the beginning of a class and those declared in the public section? There is no "the" public section. You can declare as many public (and private, and

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Jonas Maebe
On 06 Nov 2011, at 15:34, Frank Church wrote: > What is the difference between field declarations at the beginning of a > class and those declared in the public section? There is no "the" public section. You can declare as many public (and private, and ...) sections as you want. > They are all

[fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Frank Church
What is the difference between field declarations at the beginning of a class and those declared in the public section? They are all visible aren't they, what is the conceptual difference between them? -- Frank Church === http://devblog.brahmancreations.com _