Assigning Interface to Object

"Jérôme M. Berger" jeberger at free.fr
Sun Jan 16 00:23:44 PST 2011


Stewart Gordon wrote:
> On 15/01/2011 17:44, Steven Schveighoffer wrote:
> <snip>
>> Which unnecessarily complicates things. For example, you can't compare
>> two interfaces (try it!).
> 
> ?
interface I {}

...

I a = ...;
I b = ...;

if (a == b) // <-- ERROR

-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20110116/629ae448/attachment.pgp>


More information about the Digitalmars-d-learn mailing list