[fpc-pascal] Classes with abstract methods

Michael Van Canneyt michael at freepascal.org
Mon Jan 14 11:55:29 CET 2008



On Mon, 14 Jan 2008, Peter Vreman wrote:

> >> >It is allowed to create such instances: as long as you don't call any of the
> >> >abstract methods, there will be no problem.
> >>
> >>
> >> Is there a way to abort the compilation in this cases instead of a warning ?
> >
> > Currently not.
> 
> You can abort compilation in case of any warning with the -Sew option. The same goes for note or
> hint with -Sen or -Seh, but those are only usefull for compiler tests.

The problem with this mechanism is that if you have another warning which occurs first, 
that will stop your compilation, you'll never get to the abstract warning...

Michael.



More information about the fpc-pascal mailing list