{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3271","labels_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3271/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3271/comments","events_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3271/events","html_url":"https://github.com/D-Programming-Language/phobos/pull/3271","id":74858720,"number":3271,"title":"fix Issue 14553: The return types of std.array.array for narrow strin…","user":{"login":"tom-tan","id":4450141,"avatar_url":"https://avatars.githubusercontent.com/u/4450141?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-tan","html_url":"https://github.com/tom-tan","followers_url":"https://api.github.com/users/tom-tan/followers","following_url":"https://api.github.com/users/tom-tan/following{/other_user}","gists_url":"https://api.github.com/users/tom-tan/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-tan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-tan/subscriptions","organizations_url":"https://api.github.com/users/tom-tan/orgs","repos_url":"https://api.github.com/users/tom-tan/repos","events_url":"https://api.github.com/users/tom-tan/events{/privacy}","received_events_url":"https://api.github.com/users/tom-tan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-10T07:31:04Z","updated_at":"2015-07-13T08:28:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3271","html_url":"https://github.com/D-Programming-Language/phobos/pull/3271","diff_url":"https://github.com/D-Programming-Language/phobos/pull/3271.diff","patch_url":"https://github.com/D-Programming-Language/phobos/pull/3271.patch"},"body":"…gs conflicts with its documentation\r\n\r\nhttps://issues.dlang.org/show_bug.cgi?id=14553\r\n\r\nThe reason why it always returns `dchar[]` is that `ElementType!String` always returns `dchar` instead of qualified `dchar`.\r\n\r\nI also added a unittest for this issue."},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/comments/120847531","html_url":"https://github.com/D-Programming-Language/phobos/pull/3271#issuecomment-120847531","issue_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3271","id":120847531,"user":{"login":"tom-tan","id":4450141,"avatar_url":"https://avatars.githubusercontent.com/u/4450141?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-tan","html_url":"https://github.com/tom-tan","followers_url":"https://api.github.com/users/tom-tan/followers","following_url":"https://api.github.com/users/tom-tan/following{/other_user}","gists_url":"https://api.github.com/users/tom-tan/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-tan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-tan/subscriptions","organizations_url":"https://api.github.com/users/tom-tan/orgs","repos_url":"https://api.github.com/users/tom-tan/repos","events_url":"https://api.github.com/users/tom-tan/events{/privacy}","received_events_url":"https://api.github.com/users/tom-tan/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T08:28:15Z","updated_at":"2015-07-13T08:28:15Z","body":"> There's no need to branch on the constness of the character type. I believe you can do:\r\n\r\nThank you for your comment.\r\n\r\nCurrently template with `inout` parameter cannot be implicitly instanciated as `array!(wchar[])`.\r\nI filed it in [Bugzilla Issue 14797](https://issues.dlang.org/show_bug.cgi?id=14797) but it may be an enhancement request.\r\nI wait for it to be fixed.\r\n\r\n> This seems more like a documentation problem.\r\n\r\nUnfortunately only fixing the document does not solve the inconsistency issue.\r\nWe should fix the code but I'm not sure that fixing `array` for narrowing string is more appropriate.\r\nIf it is more appropriate to fix `array` for other types to return a mutable array, I will close this issue and send another request to fix it.\r\n"}}