Re: alias this of non-public member

2015-04-07 Thread Vlad Levenfeld via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 19:17:41 UTC, Márcio Martins wrote:> Proxy doesn't really help here :( Nothing will help you get around this. You have to expose a public member and alias to that. Try wrapping the access in a public zero-parameter member function.

Re: alias this of non-public member

2015-04-07 Thread via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 17:59:57 UTC, Daniel Kozak wrote: On Tuesday, 7 April 2015 at 17:43:08 UTC, Daniel Kozak wrote: On Tuesday, 7 April 2015 at 17:21:09 UTC, Daniel Kozak wrote: On Tue, 07 Apr 2015 16:40:29 + via Digitalmars-d-learn wrote: Hi! Excuse me if this is obvious, bu

Re: alias this of non-public member

2015-04-07 Thread Daniel Kozak via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 17:43:08 UTC, Daniel Kozak wrote: On Tuesday, 7 April 2015 at 17:21:09 UTC, Daniel Kozak wrote: On Tue, 07 Apr 2015 16:40:29 + via Digitalmars-d-learn wrote: Hi! Excuse me if this is obvious, but I can't recall coming across anything similar and a quick se

Re: alias this of non-public member

2015-04-07 Thread Namespace via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 17:21:09 UTC, Daniel Kozak wrote: On Tue, 07 Apr 2015 16:40:29 + via Digitalmars-d-learn wrote: Hi! Excuse me if this is obvious, but I can't recall coming across anything similar and a quick search returns nothing relevant: struct Foo { } struct FooWrap

Re: alias this of non-public member

2015-04-07 Thread Daniel Kozak via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 17:21:09 UTC, Daniel Kozak wrote: On Tue, 07 Apr 2015 16:40:29 + via Digitalmars-d-learn wrote: Hi! Excuse me if this is obvious, but I can't recall coming across anything similar and a quick search returns nothing relevant: struct Foo { } struct FooWrap

Re: alias this of non-public member

2015-04-07 Thread Dude via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 17:21:09 UTC, Daniel Kozak wrote: On Tue, 07 Apr 2015 16:40:29 + via Digitalmars-d-learn wrote: Hi! Excuse me if this is obvious, but I can't recall coming across anything similar and a quick search returns nothing relevant: struct Foo { } struct FooWrap

Re: alias this of non-public member

2015-04-07 Thread Daniel Kozak via Digitalmars-d-learn
On Tue, 07 Apr 2015 16:40:29 + via Digitalmars-d-learn wrote: > Hi! > > Excuse me if this is obvious, but I can't recall coming across > anything similar and a quick search returns nothing relevant: > > struct Foo { > } > > struct FooWrapper { >alias x_ this; >private Foo* x_; //

alias this of non-public member

2015-04-07 Thread via Digitalmars-d-learn
Hi! Excuse me if this is obvious, but I can't recall coming across anything similar and a quick search returns nothing relevant: struct Foo { } struct FooWrapper { alias x_ this; private Foo* x_; // doesn't work, as x_ is private } Basically, I want x_ to never be visible, except through