{"action":"opened","number":865,"pull_request":{"url":"https://api.github.com/repos/ldc-developers/ldc/pulls/865","id":31208961,"html_url":"https://github.com/ldc-developers/ldc/pull/865","diff_url":"https://github.com/ldc-developers/ldc/pull/865.diff","patch_url":"https://github.com/ldc-developers/ldc/pull/865.patch","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/865","number":865,"state":"open","locked":false,"title":"Experimental: Don't reverse parameter order for extern(D) on x86_64.","user":{"login":"kinke","id":1889215,"avatar_url":"https://avatars.githubusercontent.com/u/1889215?v=3","gravatar_id":"","url":"https://api.github.com/users/kinke","html_url":"https://github.com/kinke","followers_url":"https://api.github.com/users/kinke/followers","following_url":"https://api.github.com/users/kinke/following{/other_user}","gists_url":"https://api.github.com/users/kinke/gists{/gist_id}","starred_url":"https://api.github.com/users/kinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinke/subscriptions","organizations_url":"https://api.github.com/users/kinke/orgs","repos_url":"https://api.github.com/users/kinke/repos","events_url":"https://api.github.com/users/kinke/events{/privacy}","received_events_url":"https://api.github.com/users/kinke/received_events","type":"User","site_admin":false},"body":"Requires https://github.com/ldc-developers/druntime/pull/19 and https://github.com/ldc-developers/phobos/pull/9.\r\nDebug unittests pass on Linux x64 with LLVM 3.5, but dmd-testsuite reveals a serious bug:\r\n```D\r\nimport core.stdc.stdio;\r\nimport std.algorithm;\r\n\r\nstruct Shell\r\n{\r\n    string str;\r\n\r\n    const int opCmp(ref const Shell s)\r\n    {\r\n\treturn std.algorithm.cmp(this.str, s.str);\r\n    }\r\n}\r\n\r\nvoid main()\r\n{\r\n    Shell[3] a;\r\n\r\n    a[0].str = \"hello\";\r\n    a[1].str = \"betty\";\r\n    a[2].str = \"fred\";\r\n\r\n    a.sort;\r\n\r\n    foreach (Shell s; a)\r\n    {\r\n\tprintf(\"%.*s\\n\", s.str.length, s.str.ptr);\r\n    }\r\n\r\n    assert(a[0].str == \"betty\");\r\n    assert(a[1].str == \"fred\");\r\n    assert(a[2].str == \"hello\");\r\n}\r\n```\r\na.sort() sorts the array in reversed order.","created_at":"2015-03-15T22:44:56Z","updated_at":"2015-03-15T22:44:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ldc-developers/ldc/pulls/865/commits","review_comments_url":"https://api.github.com/repos/ldc-developers/ldc/pulls/865/comments","review_comment_url":"https://api.github.com/repos/ldc-developers/ldc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/865/comments","statuses_url":"https://api.github.com/repos/ldc-developers/ldc/statuses/f1bfca0db61788f100da1840b9548002cf3abf6c","head":{"label":"kinke:noReverse","ref":"noReverse","sha":"f1bfca0db61788f100da1840b9548002cf3abf6c","user":{"login":"kinke","id":1889215,"avatar_url":"https://avatars.githubusercontent.com/u/1889215?v=3","gravatar_id":"","url":"https://api.github.com/users/kinke","html_url":"https://github.com/kinke","followers_url":"https://api.github.com/users/kinke/followers","following_url":"https://api.github.com/users/kinke/following{/other_user}","gists_url":"https://api.github.com/users/kinke/gists{/gist_id}","starred_url":"https://api.github.com/users/kinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinke/subscriptions","organizations_url":"https://api.github.com/users/kinke/orgs","repos_url":"https://api.github.com/users/kinke/repos","events_url":"https://api.github.com/users/kinke/events{/privacy}","received_events_url":"https://api.github.com/users/kinke/received_events","type":"User","site_admin":false},"repo":{"id":7853031,"name":"ldc","full_name":"kinke/ldc","owner":{"login":"kinke","id":1889215,"avatar_url":"https://avatars.githubusercontent.com/u/1889215?v=3","gravatar_id":"","url":"https://api.github.com/users/kinke","html_url":"https://github.com/kinke","followers_url":"https://api.github.com/users/kinke/followers","following_url":"https://api.github.com/users/kinke/following{/other_user}","gists_url":"https://api.github.com/users/kinke/gists{/gist_id}","starred_url":"https://api.github.com/users/kinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinke/subscriptions","organizations_url":"https://api.github.com/users/kinke/orgs","repos_url":"https://api.github.com/users/kinke/repos","events_url":"https://api.github.com/users/kinke/events{/privacy}","received_events_url":"https://api.github.com/users/kinke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kinke/ldc","description":"The LLVM D compiler.","fork":true,"url":"https://api.github.com/repos/kinke/ldc","forks_url":"https://api.github.com/repos/kinke/ldc/forks","keys_url":"https://api.github.com/repos/kinke/ldc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinke/ldc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinke/ldc/teams","hooks_url":"https://api.github.com/repos/kinke/ldc/hooks","issue_events_url":"https://api.github.com/repos/kinke/ldc/issues/events{/number}","events_url":"https://api.github.com/repos/kinke/ldc/events","assignees_url":"https://api.github.com/repos/kinke/ldc/assignees{/user}","branches_url":"https://api.github.com/repos/kinke/ldc/branches{/branch}","tags_url":"https://api.github.com/repos/kinke/ldc/tags","blobs_url":"https://api.github.com/repos/kinke/ldc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinke/ldc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinke/ldc/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinke/ldc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinke/ldc/statuses/{sha}","languages_url":"https://api.github.com/repos/kinke/ldc/languages","stargazers_url":"https://api.github.com/repos/kinke/ldc/stargazers","contributors_url":"https://api.github.com/repos/kinke/ldc/contributors","subscribers_url":"https://api.github.com/repos/kinke/ldc/subscribers","subscription_url":"https://api.github.com/repos/kinke/ldc/subscription","commits_url":"https://api.github.com/repos/kinke/ldc/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinke/ldc/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinke/ldc/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinke/ldc/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinke/ldc/contents/{+path}","compare_url":"https://api.github.com/repos/kinke/ldc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinke/ldc/merges","archive_url":"https://api.github.com/repos/kinke/ldc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinke/ldc/downloads","issues_url":"https://api.github.com/repos/kinke/ldc/issues{/number}","pulls_url":"https://api.github.com/repos/kinke/ldc/pulls{/number}","milestones_url":"https://api.github.com/repos/kinke/ldc/milestones{/number}","notifications_url":"https://api.github.com/repos/kinke/ldc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinke/ldc/labels{/name}","releases_url":"https://api.github.com/repos/kinke/ldc/releases{/id}","created_at":"2013-01-27T14:20:48Z","updated_at":"2013-02-10T22:30:22Z","pushed_at":"2015-03-15T22:15:49Z","git_url":"git://github.com/kinke/ldc.git","ssh_url":"git@github.com:kinke/ldc.git","clone_url":"https://github.com/kinke/ldc.git","svn_url":"https://github.com/kinke/ldc","homepage":"http://wiki.dlang.org/LDC","size":17141,"stargazers_count":0,"watchers_count":0,"language":"C","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":"ldc-developers:master","ref":"master","sha":"fc3d38187e69b96afb1804f25b89d50dd1af3ea2","user":{"login":"ldc-developers","id":960112,"avatar_url":"https://avatars.githubusercontent.com/u/960112?v=3","gravatar_id":"","url":"https://api.github.com/users/ldc-developers","html_url":"https://github.com/ldc-developers","followers_url":"https://api.github.com/users/ldc-developers/followers","following_url":"https://api.github.com/users/ldc-developers/following{/other_user}","gists_url":"https://api.github.com/users/ldc-developers/gists{/gist_id}","starred_url":"https://api.github.com/users/ldc-developers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldc-developers/subscriptions","organizations_url":"https://api.github.com/users/ldc-developers/orgs","repos_url":"https://api.github.com/users/ldc-developers/repos","events_url":"https://api.github.com/users/ldc-developers/events{/privacy}","received_events_url":"https://api.github.com/users/ldc-developers/received_events","type":"Organization","site_admin":false},"repo":{"id":2174666,"name":"ldc","full_name":"ldc-developers/ldc","owner":{"login":"ldc-developers","id":960112,"avatar_url":"https://avatars.githubusercontent.com/u/960112?v=3","gravatar_id":"","url":"https://api.github.com/users/ldc-developers","html_url":"https://github.com/ldc-developers","followers_url":"https://api.github.com/users/ldc-developers/followers","following_url":"https://api.github.com/users/ldc-developers/following{/other_user}","gists_url":"https://api.github.com/users/ldc-developers/gists{/gist_id}","starred_url":"https://api.github.com/users/ldc-developers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldc-developers/subscriptions","organizations_url":"https://api.github.com/users/ldc-developers/orgs","repos_url":"https://api.github.com/users/ldc-developers/repos","events_url":"https://api.github.com/users/ldc-developers/events{/privacy}","received_events_url":"https://api.github.com/users/ldc-developers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ldc-developers/ldc","description":"The LLVM-based D compiler.","fork":false,"url":"https://api.github.com/repos/ldc-developers/ldc","forks_url":"https://api.github.com/repos/ldc-developers/ldc/forks","keys_url":"https://api.github.com/repos/ldc-developers/ldc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldc-developers/ldc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldc-developers/ldc/teams","hooks_url":"https://api.github.com/repos/ldc-developers/ldc/hooks","issue_events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/events{/number}","events_url":"https://api.github.com/repos/ldc-developers/ldc/events","assignees_url":"https://api.github.com/repos/ldc-developers/ldc/assignees{/user}","branches_url":"https://api.github.com/repos/ldc-developers/ldc/branches{/branch}","tags_url":"https://api.github.com/repos/ldc-developers/ldc/tags","blobs_url":"https://api.github.com/repos/ldc-developers/ldc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldc-developers/ldc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldc-developers/ldc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldc-developers/ldc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldc-developers/ldc/statuses/{sha}","languages_url":"https://api.github.com/repos/ldc-developers/ldc/languages","stargazers_url":"https://api.github.com/repos/ldc-developers/ldc/stargazers","contributors_url":"https://api.github.com/repos/ldc-developers/ldc/contributors","subscribers_url":"https://api.github.com/repos/ldc-developers/ldc/subscribers","subscription_url":"https://api.github.com/repos/ldc-developers/ldc/subscription","commits_url":"https://api.github.com/repos/ldc-developers/ldc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldc-developers/ldc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldc-developers/ldc/contents/{+path}","compare_url":"https://api.github.com/repos/ldc-developers/ldc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldc-developers/ldc/merges","archive_url":"https://api.github.com/repos/ldc-developers/ldc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldc-developers/ldc/downloads","issues_url":"https://api.github.com/repos/ldc-developers/ldc/issues{/number}","pulls_url":"https://api.github.com/repos/ldc-developers/ldc/pulls{/number}","milestones_url":"https://api.github.com/repos/ldc-developers/ldc/milestones{/number}","notifications_url":"https://api.github.com/repos/ldc-developers/ldc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldc-developers/ldc/labels{/name}","releases_url":"https://api.github.com/repos/ldc-developers/ldc/releases{/id}","created_at":"2011-08-08T17:10:27Z","updated_at":"2015-03-15T19:12:44Z","pushed_at":"2015-03-15T19:36:57Z","git_url":"git://github.com/ldc-developers/ldc.git","ssh_url":"git@github.com:ldc-developers/ldc.git","clone_url":"https://github.com/ldc-developers/ldc.git","svn_url":"https://github.com/ldc-developers/ldc","homepage":"http://wiki.dlang.org/LDC","size":22761,"stargazers_count":342,"watchers_count":342,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":83,"mirror_url":null,"open_issues_count":128,"forks":83,"open_issues":128,"watchers":342,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ldc-developers/ldc/pulls/865"},"html":{"href":"https://github.com/ldc-developers/ldc/pull/865"},"issue":{"href":"https://api.github.com/repos/ldc-developers/ldc/issues/865"},"comments":{"href":"https://api.github.com/repos/ldc-developers/ldc/issues/865/comments"},"review_comments":{"href":"https://api.github.com/repos/ldc-developers/ldc/pulls/865/comments"},"review_comment":{"href":"https://api.github.com/repos/ldc-developers/ldc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ldc-developers/ldc/pulls/865/commits"},"statuses":{"href":"https://api.github.com/repos/ldc-developers/ldc/statuses/f1bfca0db61788f100da1840b9548002cf3abf6c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":15,"changed_files":2}}