Is this a bug when creating proxies in classes?
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Aug 28 09:54:19 PDT 2014
On Thursday, 28 August 2014 at 16:23:48 UTC, anonymous wrote:
> On Tuesday, 26 August 2014 at 18:13:52 UTC, Gary Willoughby
> wrote:
>> With that in mind what is strange is that if in my example you
>> change the class for a struct everything works as expected.
>> Why is that?
>
> That's because when not mixed into a class, Proxy did import
> std.traits:
>
> static if (!is(typeof(this) == class))
> {
> private import std.traits;
Ah right, yes. ta.
More information about the Digitalmars-d-learn
mailing list