[Issue 4533] Ban public aliases to private symbols

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 1 07:57:19 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4533



--- Comment #6 from Tomasz Sowiński <tomeksowi at gmail.com> 2010-08-01 07:57:18 PDT ---
(In reply to comment #5)
> Is the following relevant to this bug report?
> 
> In the docs (http://www.digitalmars.com/d/2.0/declaration.html), there's this
> code:
> 
> void main() {
>     struct S { static int i; }
>     S s;
> 
>     alias s.i a;    // illegal, s.i is an expression
>     alias S.i b;    // ok
>     b = 4;        // sets S.i to 4
> }
> 
> But this will compile. I'm not sure if it's relevant to this bug report or if I
> should open up a new one?

Good catch. I opened bug 4545.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list