[fpc-pascal] Abstract classes ignored
Sven Barth
pascaldragon at googlemail.com
Sun Apr 18 22:54:40 CEST 2021
Graeme Geldenhuys via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb
am So., 18. Apr. 2021, 17:54:
>
> On 18/04/2021 11:31 am, C Western via fpc-pascal wrote:
> > but there are also case where it never makes sense to
> > implement them and calling them indicates a logical error elsewhere in
> > the code.
>
> So do the logical thing... Throw an exception! Don't promote a faulty
> compiler. Fix your code instead.
>
Calling an abstract method will already result in an EAbstractError to be
thrown.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210418/ecd2aa96/attachment.htm>
More information about the fpc-pascal
mailing list