digitalmars.D.bugs - [Issue 6619] New: Forward a single field to a subfield, like "alias this"
- d-bugmail puremagic.com (31/31) Sep 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6619
- d-bugmail puremagic.com (12/12) Dec 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6619
http://d.puremagic.com/issues/show_bug.cgi?id=6619 Summary: Forward a single field to a subfield, like "alias this" Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: thecybershadow gmail.com --- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2011-09-07 07:18:12 PDT --- It would be nice if this worked: struct S1 { int f; } struct S2 { S1 s1; alias s1.f g; } The error message, which occurs only when trying to access "g", is also somewhat confusing: Error: struct test.S2 'f' is not a member Error: struct test.S2 member f is not accessible Error: this for f needs to be type S1 not type S2 A more general solution would be to allow aliasing expressions, but it sounds like a large language change which would require some discussion first. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6619 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich gmail.com Resolution| |DUPLICATE --- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-12-02 11:31:08 PST --- *** This issue has been marked as a duplicate of issue 6842 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 02 2012