[fpc-pascal] Classes with abstract methods

Damien Gerard milipili at shikami.org
Mon Jan 14 10:50:36 CET 2008


On Jan 14, 2008, at 10:27 AM, Michael Van Canneyt wrote:

>
>
> On Mon, 14 Jan 2008, Damien Gerard wrote:
>
>>
>> With fpc you can get "myfile.pas(77,47) Warning: Constructing a  
>> class "xxxx"
>> with abstract methods"
>> I just would like to know why it is allowed to build classes with  
>> abstract
>> methods. AFIK it is different from other compilers and it is a bit  
>> strange for
>> me.
>
> Delphi gives exactly the same warning.

I don't remember that.

> 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 ?


--
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