[Issue 1023] Struct implementing interfaces and struct member enumeration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 5 07:13:25 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1023


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #2 from smjg at iname.com  2007-03-05 09:13 -------
I'm not sure what I think of this idea.  There are a few difficulties - some
operations would have to check whether an interface reference references a
struct or class object.  And so casting even to Object would have to have a bit
of runtime overhead to validate it.

Moreover, I'm not sure if the necessary conversion of the struct from value
semantics to reference semantics are likely to cause confusion for some/in some
circumstances.

(In reply to comment #0)
> I started a thread in the NG out of old habit, but I think this is the more
> correct place.

Actually, it was once said that feature requests shouldn't be posted on this
particular Bugzilla, but the policy seems to have faded away lately.  I'm not
sure.


-- 



More information about the Digitalmars-d-bugs mailing list