[Issue 899] structure field .offsetof property inaccessible in the scope
https://d.puremagic.com/issues/show_bug.cgi?id=899 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #3 from Kenji Hara k.hara...@gmail.com 2014-01-22 08:16:09 PST --- (In reply to comment #2) Tested on DMD 2.064 import std.stdio; struct Test { int field; } void main() { writeln(Test.field.offsetof); // works } class Class { void a() { writeln(Test.field.offsetof); // Error: this for field needs to be type Test not type main.Class } } struct Struct { void a() { writeln(Test.field.offsetof); // Error: this for field needs to be type Test not type Struct } } Finally fixed in 2.065a (git-head), by the compiler change: https://github.com/D-Programming-Language/dmd/pull/2897 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 899] structure field .offsetof property inaccessible in the scope
https://d.puremagic.com/issues/show_bug.cgi?id=899 andrea.9...@gmail.com changed: What|Removed |Added CC||andrea.9...@gmail.com Platform|x86 |All Version|1.001 |D2 OS/Version|Windows |All --- Comment #2 from andrea.9...@gmail.com 2013-11-27 09:01:12 PST --- Tested on DMD 2.064 import std.stdio; struct Test { int field; } void main() { writeln(Test.field.offsetof); // works } class Class { void a() { writeln(Test.field.offsetof); // Error: this for field needs to be type Test not type main.Class } } struct Struct { void a() { writeln(Test.field.offsetof); // Error: this for field needs to be type Test not type Struct } } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 899] structure field .offsetof property inaccessible in the scope
http://d.puremagic.com/issues/show_bug.cgi?id=899 Vladimir thecybersha...@gmail.com changed: What|Removed |Added CC||malagan...@yahoo.es --- Comment #1 from Vladimir thecybersha...@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: ---