digitalmars.D.bugs - [Issue 899] New: structure field .sizeof property inaccessible in the scope
- d-bugmail puremagic.com (33/33) Jan 28 2007 http://d.puremagic.com/issues/show_bug.cgi?id=899
- d-bugmail puremagic.com (10/10) May 27 2009 http://d.puremagic.com/issues/show_bug.cgi?id=899
http://d.puremagic.com/issues/show_bug.cgi?id=899 Summary: structure field .sizeof property inaccessible in the scope Product: D Version: 1.001 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: thecybershadow gmail.com import std.stdio; struct Test { int field; } void main() { writefln(Test.field.offsetof); // works } class Class { this() { writefln(Test.field.offsetof); // Error: this for field needs to be type Test not type bug2.Class // class bug2.Class member field is not accessible } } --
Jan 28 2007
http://d.puremagic.com/issues/show_bug.cgi?id=899 Vladimir <thecybershadow gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |malagana15 yahoo.es --- Comment #1 from Vladimir <thecybershadow gmail.com> 2009-05-27 05:22:20 PDT --- *** Issue 2302 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 27 2009