[Issue 16395] auto return on override
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 16 03:05:50 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16395
Lodovico Giaretta <lodovico at giaretart.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lodovico at giaretart.net
--- Comment #2 from Lodovico Giaretta <lodovico at giaretart.net> ---
(In reply to greenify from comment #1)
> > Currently I have two options:
>
> 3) use structs (they are usually used for ranges anyways). With alias this
> and mixins you can get a pretty decent inheritance, but of course I don't
> know your code ;-)
True in general, but not really an option for my code (I need a certain amount
of runtime polymorphism).
Regardless of my example, which I solved with option 2, the question of this
issue is "is this feasible to implement? If it is, why not have it? If it's
not, fair enough."
--
More information about the Digitalmars-d-bugs
mailing list