http://d.puremagic.com/issues/show_bug.cgi?id=7809
Andrej Mitrovic <andrej.mitrov...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrov...@gmail.com Resolution| |INVALID --- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2013-01-08 12:52:23 PST --- No, the error is in the assignment: struct S { int i; } void main() { __traits(getMember, S, "i") = 1; } Error: need 'this' to access member i The trait docs specifically state that all the trait does is forms an expression. But I don't think we even need it anymore since we can use string mixins, although it has to be around for backwards-compatibility. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------