[Lazarus] IUnknown and reference counting
Sven Barth
pascaldragon at googlemail.com
Thu Mar 21 12:19:03 CET 2013
Am 21.03.2013 12:07, schrieb Benito van der Zander:
>>
>> The GUID is also necessary if you want to have "as" and "is" support.
> It is?
> I have been using interfaces without GUID and as/is works fine.
> At least as/is Tsomeclass
That's because to support "Intf as/is ClassType" internally a hardcoded
interface GUID is used which is handled especially by
"TObject.GetInterface".
Regards,
Sven
More information about the Lazarus
mailing list