interface reference not compatible to Object?
BCS
BCS at pathlink.com
Mon Oct 23 09:26:04 PDT 2006
Frank Benoit (keinfarbton) wrote:
>
> Is this the intended behaviour? If *every* object in D is a Object, then
> every interface reference refers to an Object also. This said, the above
> should compile?
I wouldn't count on that. I for some time have been wanting D to allow
an interface to be formed any were you can form a delegate. This would
include structs, functions, literals and who only knowns what else. If
you look at an interface as a collection of methods and enough data to
give them a context, then above is not to difficult to imagine.
More information about the Digitalmars-d
mailing list