Martin Frb via fpc-devel <[email protected]> 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
_______________________________________________ fpc-devel maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
