When SomeCoClass is assigned as the return type in the member definition, SomeCoClass._com_interfaces_[0]-type instance is returned at runtime.
I have replicated those behavior in static typing.
For example, below is the case with Excel's Range.Application.
FirstComItfOf assigned to the metadata of Annotated would NOT affect behaviors at runtime, NOR does it control static type checkers.
They have no meaning beyond being simple notes.
When
SomeCoClass
is assigned as the return type in the member definition,SomeCoClass._com_interfaces_[0]
-type instance is returned at runtime. I have replicated those behavior in static typing.For example, below is the case with Excel's
Range.Application
.FirstComItfOf
assigned to the metadata ofAnnotated
would NOT affect behaviors at runtime, NOR does it control static type checkers. They have no meaning beyond being simple notes.