A few simple syntactic proposals

Robert Fraser fraserofthenight at gmail.com
Fri Apr 18 01:30:39 PDT 2008


Christopher Wright wrote:
> Robert Fraser wrote:
>> 2. Allow interfaces that are not sub-interfaces of IUnknown to be 
>> explicitly "delete"d.
> 
> Just make all interface variables implicitly typed Object as well. Or 
> make an IObject interface that Object and all interfaces inherit from, 
> then make delete take an IObject as well.
> 
> Then you can have IUnknown not inherit from IObject if you want.

Yup, that's how it should be implemented. Unless you're suggesting make 
users rewrite all their code so that their interfaces extend IObject, in 
which case I object. (that was kind of lame)



More information about the Digitalmars-d mailing list