August 12, 2011 [Issue 6481] New: composition with alias this doesn't work inside the struct | ||||
---|---|---|---|---|
| ||||
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: ------- |
August 14, 2011 [Issue 6481] composition with alias this doesn't work inside the struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation