Thread overview | |||||
---|---|---|---|---|---|
|
May 30, 2012 [Issue 8169] New: Method loses its compile-time evaluability when used through alias this | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8169 Summary: Method loses its compile-time evaluability when used through alias this Product: D Version: D2 Platform: x86_64 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: tommitissari@hotmail.com --- Comment #0 from Tommi <tommitissari@hotmail.com> 2012-05-30 10:17:34 PDT --- struct ValueImpl { static immutable(int) getValue() { return 42; } } struct ValueUser { ValueImpl m_valueImpl; alias m_valueImpl this; } void main(string[] args) { static assert(ValueUser.getValue() == 42); // #1 } Line #1 doesn't compile. Error: variable m_valueImpl cannot be read at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 30, 2012 [Issue 8169] Method loses its compile-time evaluability when used through alias this | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tommi | http://d.puremagic.com/issues/show_bug.cgi?id=8169 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid Platform|x86_64 |All OS/Version|Windows |All --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-05-30 10:31:55 PDT --- https://github.com/D-Programming-Language/dmd/pull/971 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 31, 2012 [Issue 8169] Method loses its compile-time evaluability when used through alias this | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tommi | http://d.puremagic.com/issues/show_bug.cgi?id=8169 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- 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