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

Juha Manninen juha.manninen62 at gmail.com
Fri Jul 15 14:49:10 CEST 2016


On Fri, Jul 15, 2016 at 2:22 PM, Maciej Izak <hnb.code at gmail.com> wrote:
> 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 -,- .

Ok, I believe this one is a difficult case because TForm, TFrame etc.
don't have those interfaces. You have to stich them in afterwards
somehow.

I myself learned that design with interfaces requires to turn all
params and APIs to use interfaces.
It is not easy always.

Juha



More information about the fpc-devel mailing list