Re: [fpc-pascal] how to simulate abstract properties

2009-08-17 Thread Graeme Geldenhuys
Marc Santhoff wrote: No, it shows a warning message, no error. The point is, the compiler finishes making a runnable program. I personally don't want that to happen because it will make avoidable OK, I now see what you mean. Luckily I pay close attention to any Warnings that the compiler give

Re: [fpc-pascal] how to simulate abstract properties

2009-08-17 Thread Marc Santhoff
Am Montag, den 17.08.2009, 09:12 +0200 schrieb Graeme Geldenhuys: > Marc Santhoff wrote: > > > > the compiler runs and throws no error. Fine, but this way every class > > Because you did not instantiate any instances of that class. Here is the > output after compiling my sample program with FPC

Re: [fpc-pascal] how to simulate abstract properties

2009-08-17 Thread Graeme Geldenhuys
Marc Santhoff wrote: the compiler runs and throws no error. Fine, but this way every class Because you did not instantiate any instances of that class. Here is the output after compiling my sample program with FPC 2.2.5 === $ fpc test1.pas Free Pascal Compiler ve

Re: [fpc-pascal] how to simulate abstract properties

2009-08-16 Thread Marc Santhoff
Am Sonntag, den 16.08.2009, 20:05 +0200 schrieb Jonas Maebe: > On 16 Aug 2009, at 19:58, Marc Santhoff wrote: > > > Am Sonntag, den 16.08.2009, 12:00 +0200 schrieb Jonas Maebe: > >> > > > >> Seems like there is a practical use-case for > >> http://bugs.freepascal.org/view.php?id=13957 > >> after

Re: [fpc-pascal] how to simulate abstract properties

2009-08-16 Thread Jonas Maebe
On 16 Aug 2009, at 19:58, Marc Santhoff wrote: Am Sonntag, den 16.08.2009, 12:00 +0200 schrieb Jonas Maebe: Seems like there is a practical use-case for http://bugs.freepascal.org/view.php?id=13957 after all :) Do I understand correctly that this patch allow me to remap the warning

Re: [fpc-pascal] how to simulate abstract properties

2009-08-16 Thread Marc Santhoff
Am Sonntag, den 16.08.2009, 12:00 +0200 schrieb Jonas Maebe: > On 16 Aug 2009, at 04:37, Marc Santhoff wrote: > > > What I want is to ensure not forgetting to override any method. The > > compiler should stop on error when this happens. > > How can this be done? > > > > (I know the compiler does e

Re: [fpc-pascal] how to simulate abstract properties

2009-08-16 Thread Jonas Maebe
On 16 Aug 2009, at 04:37, Marc Santhoff wrote: What I want is to ensure not forgetting to override any method. The compiler should stop on error when this happens. How can this be done? (I know the compiler does emit a warning, but switching to "stop on warning" is o option for me.) Seems li