Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
March 06, 2013 [Issue 9654] New: Template function cannot take string by ref T[len] | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9654 Summary: Template function cannot take string by ref T[len] Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: k.hara.pg@gmail.com --- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2013-03-05 20:46:45 PST --- This code should work. void foo(ref const char[8] str) {} void bar(T)(ref const T[8] str) {} void main() { foo("testinfo"); // OK bar("testinfo"); // should be OK, but fails } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 06, 2013 [Issue 9654] Template function cannot take string by ref T[len] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=9654 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-03-05 20:51:06 PST --- https://github.com/D-Programming-Language/dmd/pull/1723 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 06, 2013 [Issue 9654] Template function cannot take string by ref T[len] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=9654 --- Comment #2 from github-bugzilla@puremagic.com 2013-03-05 22:43:49 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a9c17e46e968e45c2ed329b658e714659362cae5 fix Issue 9654 - Template function cannot take string by ref T[len] https://github.com/D-Programming-Language/dmd/commit/fb5f3fb7c9f8cf60c6495bd9df4103e80553e588 Merge pull request #1723 from 9rnsr/fix9654 Issue 9654 - Template function cannot take string by ref T[len] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 06, 2013 [Issue 9654] Template function cannot take string by ref T[len] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=9654 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 15, 2013 [Issue 9654] Template function cannot take string by ref T[len] | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=9654 --- Comment #3 from github-bugzilla@puremagic.com 2013-03-15 09:58:40 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c0c678e73a088482da91b6e05c1ec91788461273 fix Issue 9654 - Template function cannot take string by ref T[len] That should work even if len is TemplateValueParameter. -- 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