[Issue 6408] string[].init gives a wrong type

2013-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6408] string[].init gives a wrong type

2013-01-20 Thread d-bugmail
/064b0419f8956a76f3d7cabeacd0861cff802923 Fix Issue 6408 - string[].init gives a wrong type Allow reinterpreting a slice or index expression as a dynamic array, static array, or associative array https://github.com/D-Programming-Language/dmd/commit/cd9ef35c402dbeb177343c7cea5b9ed4a5e6b94f Merge pull request #1495 from yebblies

[Issue 6408] string[].init gives a wrong type

2013-01-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||pull CC|

[Issue 6408] string[].init gives a wrong type

2013-01-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 --- Comment #7 from bearophile_h...@eml.cc 2013-01-16 09:58:21 PST --- (In reply to comment #6) I'm not sure T* can be done like this, but it also produces an error instead of being ignored silently. Thank you. In the unittests have you

[Issue 6408] string[].init gives a wrong type

2013-01-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 --- Comment #8 from yebblies yebbl...@gmail.com 2013-01-17 11:35:14 EST --- (In reply to comment #7) (In reply to comment #6) I'm not sure T* can be done like this, but it also produces an error instead of being ignored silently.

[Issue 6408] string[].init gives a wrong type

2011-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 kenn...@gmail.com changed: What|Removed |Added Keywords|wrong-code |accepts-invalid CC|

[Issue 6408] string[].init gives a wrong type

2011-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 --- Comment #2 from bearophile_h...@eml.cc 2011-07-30 09:13:40 PDT --- (In reply to comment #1) Apparently DMD shouldn't accept string[].init at all, e.g. int[].init is a parser error: Isn't it better to modify DMD to accept both

[Issue 6408] string[].init gives a wrong type

2011-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 --- Comment #3 from kenn...@gmail.com 2011-07-30 12:03:14 PDT --- (In reply to comment #2) (In reply to comment #1) Apparently DMD shouldn't accept string[].init at all, e.g. int[].init is a parser error: Isn't it better to modify DMD

[Issue 6408] string[].init gives a wrong type

2011-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 --- Comment #4 from bearophile_h...@eml.cc 2011-07-30 12:37:31 PDT --- (In reply to comment #3) You could also just add a pair of parenthesis: (string[]).init (int[]).init This was my last example. I'm not sure about allowing

[Issue 6408] string[].init gives a wrong type

2011-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6408 --- Comment #5 from kenn...@gmail.com 2011-07-30 13:41:25 PDT --- (In reply to comment #4) (In reply to comment #3) You could also just add a pair of parenthesis: (string[]).init (int[]).init This was my last example.