[fpc-devel] Sven commit (r34087) breaks casting an object to an interface

Maciej Izak hnb.code at gmail.com
Fri Jul 15 13:22:22 CEST 2016

2016-07-15 13:10 GMT+02:00 Juha Manninen <juha.manninen62 at gmail.com>:

> Code design is another issue which should not be mixed here, although
> I still think there is something fishy in that specific use case. It
> could be implemented differently.

Change for the AForm's type to IDesignedForm is impossible in mentioned
context. IDesignedForm means not only "TForm" but is used also to handle
forms for TFrame and TDataModule. IDesignedForm is way to unify usage of
TForm (which directly exist as form) and "form containers" for
 TFrame/TDataModule. Nothing wrong with that. Normal code -,- .

Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160715/b16ed2ec/attachment.html>

More information about the fpc-devel mailing list