[fpc-pascal] Classes with abstract methods
Damien Gerard
milipili at shikami.org
Mon Jan 14 14:43:48 CET 2008
On Jan 14, 2008, at 11:55 AM, Michael Van Canneyt wrote:
>
>
> 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...
I agree.
May be a new option in a future release of fpc ? :)
It would be nice to have a switch to do it.
--
Damien Gerard
milipili at shikami.org
Le temps n'a pas d'importance. Seul le code est important
-- (f00ty)
More information about the fpc-pascal
mailing list