digitalmars.D.bugs - [Issue 6481] New: composition with alias this doesn't work inside the struct
- d-bugmail puremagic.com (35/35) Aug 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6481
- d-bugmail puremagic.com (11/11) Aug 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6481
http://d.puremagic.com/issues/show_bug.cgi?id=6481 Summary: composition with alias this doesn't work inside the struct Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: mrmocool gmx.de --- Comment #0 from Trass3r <mrmocool gmx.de> 2011-08-12 12:56:34 PDT --- struct Memory { int foo; } struct Image { Memory sup; alias sup this; void bla() { foo = 1; } } $ dmd -c test.d DMD v2.054 DEBUG test.d(12): Error: undefined identifier foo Using this.foo = 1 fixes it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 12 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6481 Trass3r <mrmocool gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Trass3r <mrmocool gmx.de> 2011-08-14 07:32:32 PDT --- *** This issue has been marked as a duplicate of issue 2787 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 14 2011