Why can't we derive struct's? (Hansel & Gretel)

Manu turkeyman at gmail.com
Fri Dec 21 07:23:41 UTC 2018


On Thu., 20 Dec. 2018, 7:35 pm Walter Bright via Digitalmars-d <
digitalmars-d at puremagic.com wrote:

> On 12/20/2018 10:38 AM, H. S. Teoh wrote:
> > There has been multiple attempts to implement it, but none were
> > persistent enough to see it through to the finish line.
>
> Nobody has figured out the semantics of single alias this, either (when
> faced
> with class inheritance). The bugzilla issues for it are ample evidence.
>
> MI is a Hansel and Gretel feature, where it appears to be all gingerbread
> and
> candy, but the witch inevitably appears to pop you in the oven.
>
>
> Other Hansel and Gretel features:
>
> 1. monkey patching
> 2. macros
> 3. implicit variable declaration
> 4. preprocessor
>

I don't think I've ever wanted multiple inheritance in D, but I do want
implicit conversions very often, and occasionally multiple implicit
conversions.

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20181220/90886d6a/attachment.html>


More information about the Digitalmars-d mailing list