<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Martin Frb via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Fr., 31. Juli 2026, 15:29:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">According to<br>
<a href="https://forum.lazarus.freepascal.org/index.php?topic=74492" rel="noreferrer noreferrer" target="_blank">https://forum.lazarus.freepascal.org/index.php?topic=74492</a><br>
<br>
corba interfaces without guid no longe compile?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If so, why?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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) </div><div dir="auto">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. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>