std.typecons wrap interface with NVI

Matthew Dudley pontifechs at gmail.com
Sun Feb 2 09:30:04 PST 2014


On Sunday, 2 February 2014 at 11:07:41 UTC, Dicebot wrote:
> `wrap` has relatively simple meaning: for any interface I and 
> class C it generates class C' inheriting I and implementing all 
> methods of I in terms of forwarding calls to methods of C with 
> same name and signature.
>
> What does happen here is that `wrap` was not implemented with 
> NVI in mind and tries to override `both` in C' which, of 
> course, can't work.
>
> File an enhancement request for `wrap` to become aware of NVI.

That's kinda what I suspected was happening.

I've added it to bugzilla:
https://d.puremagic.com/issues/show_bug.cgi?id=12064

Thanks guys


More information about the Digitalmars-d-learn mailing list