std.typecons wrap interface with NVI
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Sat Feb 1 23:28:14 PST 2014
On Sunday, 2 February 2014 at 01:19:22 UTC, Matthew Dudley wrote:
> This is the general outline of what I'm trying to do:
>
>
>
> import std.typecons; //wrap
>
> import std.stdio;
>
>
> interface FooBar
> {
> public:
> void foo();
> void bar();
>
> final void both() // NVI
> {
> foo();
> bar();
> }
> }
It seems that wrap is expecting your type to implement both(). I
think this should be considered a bug and placed in bugzilla.
On another note:
import std.typecons: wrap;
More information about the Digitalmars-d-learn
mailing list