[Issue 7770] __dollar cannot be read at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=7770 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||degener_tr...@mail.ru --- Comment #6 from Don clugd...@yahoo.com.au 2012-07-24 07:10:28 PDT --- *** Issue 8419 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: ---
[Issue 7770] __dollar cannot be read at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=7770 --- Comment #5 from github-bugzi...@puremagic.com 2012-04-14 15:44:13 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/59ee1fa13ff8f921bfe45307ea595fae7ea51fa7 Fix issue 7770 __dollar cannot be read at compile time It is always a CTFE variable, even if in global scope. https://github.com/D-Programming-Language/dmd/commit/4ff8864319107a802430cc1117fb560a1dcd6383 Merge pull request #867 from donc/ctfe7770dollar Fix issue 7770 __dollar cannot be read at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7770] __dollar cannot be read at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=7770 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|REOPENED|RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7770] __dollar cannot be read at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=7770 --- Comment #4 from Don clugd...@yahoo.com.au 2012-04-04 11:57:54 PDT --- *** Issue 7771 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: ---
[Issue 7770] __dollar cannot be read at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=7770 d...@dawgfoto.de changed: What|Removed |Added Status|NEW |RESOLVED CC||d...@dawgfoto.de Resolution||INVALID --- Comment #1 from d...@dawgfoto.de 2012-03-25 17:38:04 PDT --- D has no runtime initialization for static variables. Therefor the initializer must be constant. The error message could be better though. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7770] __dollar cannot be read at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=7770 d...@dawgfoto.de changed: What|Removed |Added Keywords||CTFE Status|RESOLVED|REOPENED Resolution|INVALID | --- Comment #2 from d...@dawgfoto.de 2012-03-25 17:48:06 PDT --- cat bug.d CODE immutable char[5] foo = abcde; int bar(string a, string b) { return 0; } void baz() { enum s = bar(foo, foo[0 .. $]); } // Assertion failed: (!v-isDataseg() || v-isCTFE()), function push, file interpret.c, line 108. version (none) enum s = bar(foo, foo[0 .. $]); CODE dmd -c bug Sorry, you're point was obviously that __dollar should be resolvable at compile time. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---