<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
It is kind of curious why interface typed identifiers don't implicitly cast to Object, and you must explicitly cast.<BR>
<BR>
But regardless of the reason, adopting a convention (and a bad one at that) such as prefixing interfaces with &quot;I&quot; probably shouldn't be done at the language level.&nbsp; And even more, D already has avoided creating any kind of special types (you can throw Object, for instance, and it's not a derivative of <I>Exception</I>) so far as I can tell...why start now?<BR>
<BR>
Cheers,<BR>
&nbsp;&nbsp;&nbsp; Scott S. McCoy<BR>
<BR>
On Sun, 2008-03-30 at 23:25 +0200, Frank Benoit wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">COM is the only reason I am aware of, why interfaces are not implicit </FONT>
<FONT COLOR="#000000">compatible to to object.Object. But COM is a very special case which </FONT>
<FONT COLOR="#000000">probably can get a special solution?</FONT>

<FONT COLOR="#000000">How about making /IUnknown/ a special interface without this </FONT>
<FONT COLOR="#000000">compatibility and have all interfaces, not derived from IUnknown be </FONT>
<FONT COLOR="#000000">compatible to Object?</FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>