[fpc-pascal] class declaration questions

2007-10-12 Thread Marc Santhoff
Hi, the reference manual is not explicitly clear in describing class declarations. Is it true for classes as for objects that the first block of components after the class header are visible as if declared public? E.g. TAnyClass = class fField:anytype; end; would make fField visible

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Felipe Monteiro de Carvalho
On 10/12/07, Marc Santhoff [EMAIL PROTECTED] wrote: Does object pascal allow a class declaration marked as an abstract class? Like in java for making sure the class can never be instantiated itself, only it's descendants can be? The compiler will issue a warning if you instantiate a class with

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Vincent Snijders
Marc Santhoff schreef: Hi, the reference manual is not explicitly clear in describing class declarations. Is it true for classes as for objects that the first block of components after the class header are visible as if declared public? E.g. TAnyClass = class fField:anytype; end;

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Joao Morais
Felipe Monteiro de Carvalho wrote: On 10/12/07, Marc Santhoff [EMAIL PROTECTED] wrote: Does object pascal allow a class declaration marked as an abstract class? Like in java for making sure the class can never be instantiated itself, only it's descendants can be? The compiler will issue a

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Joao Morais
Vincent Snijders wrote: Marc Santhoff schreef: Hi, the reference manual is not explicitly clear in describing class declarations. Is it true for classes as for objects that the first block of components after the class header are visible as if declared public? E.g. TAnyClass = class

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Mattias Gaertner
On Fri, 12 Oct 2007 18:41:19 -0300 Joao Morais [EMAIL PROTECTED] wrote: Felipe Monteiro de Carvalho wrote: On 10/12/07, Marc Santhoff [EMAIL PROTECTED] wrote: Does object pascal allow a class declaration marked as an abstract class? Like in java for making sure the class can never be

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Marc Santhoff
Am Samstag, den 13.10.2007, 00:50 +0200 schrieb Mattias Gaertner: On Fri, 12 Oct 2007 18:41:19 -0300 Joao Morais [EMAIL PROTECTED] wrote: Felipe Monteiro de Carvalho wrote: On 10/12/07, Marc Santhoff [EMAIL PROTECTED] wrote: Does object pascal allow a class declaration marked as an