Cannot implicitly convert derived type

Steven Schveighoffer schveiguy at yahoo.com
Sun Feb 23 19:00:19 PST 2014


On Sun, 23 Feb 2014 08:26:10 -0500, Frustrated <c1514843 at drdrb.com> wrote:

> It has nothing to do with being dynamically typed. We can't solve
> this problem until you get your head out of the gutter(the gutter
> being how D does things already. Can't make progress on something
> if you ever look beyond what it can do).

You have a nasty habit of assuming people do not know as much as you.

Bottom line, I get what you are asking, always have. It could be done, but  
D won't do it for you, nor will it be modified to do that. The costs of  
additional runtime type checks are far too great to implicitly add them.  
Use mixin generation, and be done with it.

-Steve


More information about the Digitalmars-d-learn mailing list