[fpc-devel] CORBA and GUID => changes?

Sven Barth pascaldragon at googlemail.com
Fri Jul 31 19:54:04 CEST 2026


Martin Frb via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am Fr.,
31. Juli 2026, 15:29:

> According to
> https://forum.lazarus.freepascal.org/index.php?topic=74492
>
> corba interfaces without guid no longe compile?
>

Please check correctly: CORBA/raw interfaces without name do still compile,
just like Com interfaces without GUID do compile, however you can no longer
use "as" to convert a class to such an interface.


> If so, why?
>

a) this is consistent with the behavior of casting such an interface to
string (you also can't use "as" to convert to a COM interface without GUID)
b) it could lead to subtle errors if a class implements multiple such
interfaces, cause TObject.GetInterface will pick the first matching
interface by name which without name will simply be the first one without a
name.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20260731/eaaab578/attachment.htm>


More information about the fpc-devel mailing list