{"action":"created","comment":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/57369135","id":57369135,"diff_hunk":"@@ -446,6 +450,12 @@ Throws: $(D FileException) on error.\n void write(R)(R name, const void[] buffer)\n     if ((isInputRange!R && isSomeChar!(ElementEncodingType!R) || isSomeString!R) &&\n         !isConvertibleToString!R)\n+in\n+{\n+    version(Posix) assert(buffer.length <= 0x7ffff000);\n+    version(Win64) assert(buffer.length <= uint.max);","path":"std/file.d","position":18,"original_position":18,"commit_id":"9778a228d1d964dae2f076d68e3795bfa3717157","original_commit_id":"9778a228d1d964dae2f076d68e3795bfa3717157","user":{"login":"9il","id":845083,"avatar_url":"https://avatars.githubusercontent.com/u/845083?v=3","gravatar_id":"","url":"https://api.github.com/users/9il","html_url":"https://github.com/9il","followers_url":"https://api.github.com/users/9il/followers","following_url":"https://api.github.com/users/9il/following{/other_user}","gists_url":"https://api.github.com/users/9il/gists{/gist_id}","starred_url":"https://api.github.com/users/9il/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9il/subscriptions","organizations_url":"https://api.github.com/users/9il/orgs","repos_url":"https://api.github.com/users/9il/repos","events_url":"https://api.github.com/users/9il/events{/privacy}","received_events_url":"https://api.github.com/users/9il/received_events","type":"User","site_admin":false},"body":"Looks like  a CT constraints can be added c`version(...) ... else version(...) else static assert(0,  \"std.file.write constraints is not defined for this platform.\");`","created_at":"2016-03-24T18:53:33Z","updated_at":"2016-03-24T18:53:33Z","html_url":"https://github.com/D-Programming-Language/phobos/pull/4107#discussion_r57369135","pull_request_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107","_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/57369135"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/4107#discussion_r57369135"},"pull_request":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107"}}},"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107","id":63803645,"html_url":"https://github.com/D-Programming-Language/phobos/pull/4107","diff_url":"https://github.com/D-Programming-Language/phobos/pull/4107.diff","patch_url":"https://github.com/D-Programming-Language/phobos/pull/4107.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/4107","number":4107,"state":"open","locked":false,"title":"work around issue 11791 - std.file.write failed to write huge files","user":{"login":"BBasile","id":16154339,"avatar_url":"https://avatars.githubusercontent.com/u/16154339?v=3","gravatar_id":"","url":"https://api.github.com/users/BBasile","html_url":"https://github.com/BBasile","followers_url":"https://api.github.com/users/BBasile/followers","following_url":"https://api.github.com/users/BBasile/following{/other_user}","gists_url":"https://api.github.com/users/BBasile/gists{/gist_id}","starred_url":"https://api.github.com/users/BBasile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBasile/subscriptions","organizations_url":"https://api.github.com/users/BBasile/orgs","repos_url":"https://api.github.com/users/BBasile/repos","events_url":"https://api.github.com/users/BBasile/events{/privacy}","received_events_url":"https://api.github.com/users/BBasile/received_events","type":"User","site_admin":false},"body":"It's actually not a bug because it's documented (see http://man7.org/linux/man-pages/man2/write.2.html). As a workaround, this limit is specified in append() and write() ddoc.\r\nAdditionally an input contract's been added to detect clearly the error during any testing phase.","created_at":"2016-03-22T22:28:11Z","updated_at":"2016-03-24T18:53:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf2662a04741b6b3151a1f7cc20075db0d503791","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/4107/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/9778a228d1d964dae2f076d68e3795bfa3717157","head":{"label":"BBasile:issue-11791","ref":"issue-11791","sha":"9778a228d1d964dae2f076d68e3795bfa3717157","user":{"login":"BBasile","id":16154339,"avatar_url":"https://avatars.githubusercontent.com/u/16154339?v=3","gravatar_id":"","url":"https://api.github.com/users/BBasile","html_url":"https://github.com/BBasile","followers_url":"https://api.github.com/users/BBasile/followers","following_url":"https://api.github.com/users/BBasile/following{/other_user}","gists_url":"https://api.github.com/users/BBasile/gists{/gist_id}","starred_url":"https://api.github.com/users/BBasile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBasile/subscriptions","organizations_url":"https://api.github.com/users/BBasile/orgs","repos_url":"https://api.github.com/users/BBasile/repos","events_url":"https://api.github.com/users/BBasile/events{/privacy}","received_events_url":"https://api.github.com/users/BBasile/received_events","type":"User","site_admin":false},"repo":{"id":47467512,"name":"phobos","full_name":"BBasile/phobos","owner":{"login":"BBasile","id":16154339,"avatar_url":"https://avatars.githubusercontent.com/u/16154339?v=3","gravatar_id":"","url":"https://api.github.com/users/BBasile","html_url":"https://github.com/BBasile","followers_url":"https://api.github.com/users/BBasile/followers","following_url":"https://api.github.com/users/BBasile/following{/other_user}","gists_url":"https://api.github.com/users/BBasile/gists{/gist_id}","starred_url":"https://api.github.com/users/BBasile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBasile/subscriptions","organizations_url":"https://api.github.com/users/BBasile/orgs","repos_url":"https://api.github.com/users/BBasile/repos","events_url":"https://api.github.com/users/BBasile/events{/privacy}","received_events_url":"https://api.github.com/users/BBasile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BBasile/phobos","description":"The standard library of the D programming language","fork":true,"url":"https://api.github.com/repos/BBasile/phobos","forks_url":"https://api.github.com/repos/BBasile/phobos/forks","keys_url":"https://api.github.com/repos/BBasile/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BBasile/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BBasile/phobos/teams","hooks_url":"https://api.github.com/repos/BBasile/phobos/hooks","issue_events_url":"https://api.github.com/repos/BBasile/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/BBasile/phobos/events","assignees_url":"https://api.github.com/repos/BBasile/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/BBasile/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/BBasile/phobos/tags","blobs_url":"https://api.github.com/repos/BBasile/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BBasile/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BBasile/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/BBasile/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BBasile/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/BBasile/phobos/languages","stargazers_url":"https://api.github.com/repos/BBasile/phobos/stargazers","contributors_url":"https://api.github.com/repos/BBasile/phobos/contributors","subscribers_url":"https://api.github.com/repos/BBasile/phobos/subscribers","subscription_url":"https://api.github.com/repos/BBasile/phobos/subscription","commits_url":"https://api.github.com/repos/BBasile/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/BBasile/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/BBasile/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/BBasile/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/BBasile/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/BBasile/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BBasile/phobos/merges","archive_url":"https://api.github.com/repos/BBasile/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BBasile/phobos/downloads","issues_url":"https://api.github.com/repos/BBasile/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/BBasile/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/BBasile/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/BBasile/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BBasile/phobos/labels{/name}","releases_url":"https://api.github.com/repos/BBasile/phobos/releases{/id}","deployments_url":"https://api.github.com/repos/BBasile/phobos/deployments","created_at":"2015-12-05T18:26:16Z","updated_at":"2016-01-24T04:34:45Z","pushed_at":"2016-03-23T20:45:32Z","git_url":"git://github.com/BBasile/phobos.git","ssh_url":"git@github.com:BBasile/phobos.git","clone_url":"https://github.com/BBasile/phobos.git","svn_url":"https://github.com/BBasile/phobos","homepage":"dlang.org/phobos","size":49592,"stargazers_count":0,"watchers_count":0,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"ade29ea46e5d4d395ed3867cc4ed2fd1fe0af05f","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257084,"name":"phobos","full_name":"D-Programming-Language/phobos","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/phobos","description":"The standard library of the D programming language","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/phobos","forks_url":"https://api.github.com/repos/D-Programming-Language/phobos/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/phobos/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/phobos/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/phobos/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/phobos/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/phobos/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/phobos/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/phobos/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/phobos/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/phobos/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/phobos/releases{/id}","deployments_url":"https://api.github.com/repos/D-Programming-Language/phobos/deployments","created_at":"2011-01-15T07:00:06Z","updated_at":"2016-03-23T23:31:45Z","pushed_at":"2016-03-24T17:58:03Z","git_url":"git://github.com/D-Programming-Language/phobos.git","ssh_url":"git@github.com:D-Programming-Language/phobos.git","clone_url":"https://github.com/D-Programming-Language/phobos.git","svn_url":"https://github.com/D-Programming-Language/phobos","homepage":"dlang.org/phobos","size":70232,"stargazers_count":689,"watchers_count":689,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":467,"mirror_url":null,"open_issues_count":98,"forks":467,"open_issues":98,"watchers":689,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/4107"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/4107"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/4107/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/4107/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/9778a228d1d964dae2f076d68e3795bfa3717157"}}}}