Hi! I'm tring to use CORBA interfaces (that are interface that doesn't derive from IUnknown).
This interfaces work much like java ones, so that you dont' have to define IUnknown methods (addRef, etc, for reference counting) that are necessary for COM.

I'd like to just have an "interface" layer for my classes, i don't want the ref count stuff.

One problem i had is that the interfaces can't be freed by themselves..

[pascal]
type

INamed = interface
function GetName:string;
end;

var n:INamed;
begin
n:=TNamedItem.create;
n.free;
end;
[/pascal]

this says that free is not defined in INamed. I can define it and effectively it works, but is it correct ?

Another thing: are this kind of interface only avaiable from freepascal or also in delphi ?

Thanks