Graeme Geldenhuys via fpc-pascal <fpc-pascal@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

>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to