{"action":"closed","number":295,"pull_request":{"url":"https://api.github.com/repos/munificent/wren/pulls/295","id":42524152,"html_url":"https://github.com/munificent/wren/pull/295","diff_url":"https://github.com/munificent/wren/pull/295.diff","patch_url":"https://github.com/munificent/wren/pull/295.patch","issue_url":"https://api.github.com/repos/munificent/wren/issues/295","number":295,"state":"closed","locked":false,"title":"First pass at implementing foreign classes.","user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"body":"Most of the pieces are there:\r\n\r\n- You can declare a foreign class.\r\n- It will call your C function to provide an allocator function.\r\n- Whenever a foreign object is created, it calls the allocator.\r\n- Foreign methods can access the foreign bytes of an object.\r\n- Most of the runtime checking is in place for things like subclassing\r\n  foreign classes.\r\n\r\nThere is still some loose ends to tie up:\r\n\r\n- Finalizers are not called.\r\n- Some of the error-handling could be better.\r\n- The GC doesn't track how much memory a marked foreign object uses.","created_at":"2015-08-15T19:08:15Z","updated_at":"2015-08-15T19:09:49Z","closed_at":"2015-08-15T19:09:49Z","merged_at":"2015-08-15T19:09:49Z","merge_commit_sha":"05d670913b7c73280b8000ab840f4fd12107757e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/munificent/wren/pulls/295/commits","review_comments_url":"https://api.github.com/repos/munificent/wren/pulls/295/comments","review_comment_url":"https://api.github.com/repos/munificent/wren/pulls/comments{/number}","comments_url":"https://api.github.com/repos/munificent/wren/issues/295/comments","statuses_url":"https://api.github.com/repos/munificent/wren/statuses/48bdbc77459d443d21ca9157088d65bce49143f1","head":{"label":"munificent:foreign-classes","ref":"foreign-classes","sha":"48bdbc77459d443d21ca9157088d65bce49143f1","user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"repo":{"id":14509809,"name":"wren","full_name":"munificent/wren","owner":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/munificent/wren","description":"The Wren Programming Language","fork":false,"url":"https://api.github.com/repos/munificent/wren","forks_url":"https://api.github.com/repos/munificent/wren/forks","keys_url":"https://api.github.com/repos/munificent/wren/keys{/key_id}","collaborators_url":"https://api.github.com/repos/munificent/wren/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/munificent/wren/teams","hooks_url":"https://api.github.com/repos/munificent/wren/hooks","issue_events_url":"https://api.github.com/repos/munificent/wren/issues/events{/number}","events_url":"https://api.github.com/repos/munificent/wren/events","assignees_url":"https://api.github.com/repos/munificent/wren/assignees{/user}","branches_url":"https://api.github.com/repos/munificent/wren/branches{/branch}","tags_url":"https://api.github.com/repos/munificent/wren/tags","blobs_url":"https://api.github.com/repos/munificent/wren/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/munificent/wren/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/munificent/wren/git/refs{/sha}","trees_url":"https://api.github.com/repos/munificent/wren/git/trees{/sha}","statuses_url":"https://api.github.com/repos/munificent/wren/statuses/{sha}","languages_url":"https://api.github.com/repos/munificent/wren/languages","stargazers_url":"https://api.github.com/repos/munificent/wren/stargazers","contributors_url":"https://api.github.com/repos/munificent/wren/contributors","subscribers_url":"https://api.github.com/repos/munificent/wren/subscribers","subscription_url":"https://api.github.com/repos/munificent/wren/subscription","commits_url":"https://api.github.com/repos/munificent/wren/commits{/sha}","git_commits_url":"https://api.github.com/repos/munificent/wren/git/commits{/sha}","comments_url":"https://api.github.com/repos/munificent/wren/comments{/number}","issue_comment_url":"https://api.github.com/repos/munificent/wren/issues/comments{/number}","contents_url":"https://api.github.com/repos/munificent/wren/contents/{+path}","compare_url":"https://api.github.com/repos/munificent/wren/compare/{base}...{head}","merges_url":"https://api.github.com/repos/munificent/wren/merges","archive_url":"https://api.github.com/repos/munificent/wren/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/munificent/wren/downloads","issues_url":"https://api.github.com/repos/munificent/wren/issues{/number}","pulls_url":"https://api.github.com/repos/munificent/wren/pulls{/number}","milestones_url":"https://api.github.com/repos/munificent/wren/milestones{/number}","notifications_url":"https://api.github.com/repos/munificent/wren/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/munificent/wren/labels{/name}","releases_url":"https://api.github.com/repos/munificent/wren/releases{/id}","created_at":"2013-11-19T00:43:45Z","updated_at":"2015-08-14T12:40:00Z","pushed_at":"2015-08-15T19:09:49Z","git_url":"git://github.com/munificent/wren.git","ssh_url":"git@github.com:munificent/wren.git","clone_url":"https://github.com/munificent/wren.git","svn_url":"https://github.com/munificent/wren","homepage":"http://munificent.github.io/wren/","size":5823,"stargazers_count":755,"watchers_count":755,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":73,"mirror_url":null,"open_issues_count":39,"forks":73,"open_issues":39,"watchers":755,"default_branch":"master"}},"base":{"label":"munificent:master","ref":"master","sha":"7a79b8fac625ebd7da4113a3329b8fd72bc781da","user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"repo":{"id":14509809,"name":"wren","full_name":"munificent/wren","owner":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/munificent/wren","description":"The Wren Programming Language","fork":false,"url":"https://api.github.com/repos/munificent/wren","forks_url":"https://api.github.com/repos/munificent/wren/forks","keys_url":"https://api.github.com/repos/munificent/wren/keys{/key_id}","collaborators_url":"https://api.github.com/repos/munificent/wren/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/munificent/wren/teams","hooks_url":"https://api.github.com/repos/munificent/wren/hooks","issue_events_url":"https://api.github.com/repos/munificent/wren/issues/events{/number}","events_url":"https://api.github.com/repos/munificent/wren/events","assignees_url":"https://api.github.com/repos/munificent/wren/assignees{/user}","branches_url":"https://api.github.com/repos/munificent/wren/branches{/branch}","tags_url":"https://api.github.com/repos/munificent/wren/tags","blobs_url":"https://api.github.com/repos/munificent/wren/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/munificent/wren/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/munificent/wren/git/refs{/sha}","trees_url":"https://api.github.com/repos/munificent/wren/git/trees{/sha}","statuses_url":"https://api.github.com/repos/munificent/wren/statuses/{sha}","languages_url":"https://api.github.com/repos/munificent/wren/languages","stargazers_url":"https://api.github.com/repos/munificent/wren/stargazers","contributors_url":"https://api.github.com/repos/munificent/wren/contributors","subscribers_url":"https://api.github.com/repos/munificent/wren/subscribers","subscription_url":"https://api.github.com/repos/munificent/wren/subscription","commits_url":"https://api.github.com/repos/munificent/wren/commits{/sha}","git_commits_url":"https://api.github.com/repos/munificent/wren/git/commits{/sha}","comments_url":"https://api.github.com/repos/munificent/wren/comments{/number}","issue_comment_url":"https://api.github.com/repos/munificent/wren/issues/comments{/number}","contents_url":"https://api.github.com/repos/munificent/wren/contents/{+path}","compare_url":"https://api.github.com/repos/munificent/wren/compare/{base}...{head}","merges_url":"https://api.github.com/repos/munificent/wren/merges","archive_url":"https://api.github.com/repos/munificent/wren/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/munificent/wren/downloads","issues_url":"https://api.github.com/repos/munificent/wren/issues{/number}","pulls_url":"https://api.github.com/repos/munificent/wren/pulls{/number}","milestones_url":"https://api.github.com/repos/munificent/wren/milestones{/number}","notifications_url":"https://api.github.com/repos/munificent/wren/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/munificent/wren/labels{/name}","releases_url":"https://api.github.com/repos/munificent/wren/releases{/id}","created_at":"2013-11-19T00:43:45Z","updated_at":"2015-08-14T12:40:00Z","pushed_at":"2015-08-15T19:09:49Z","git_url":"git://github.com/munificent/wren.git","ssh_url":"git@github.com:munificent/wren.git","clone_url":"https://github.com/munificent/wren.git","svn_url":"https://github.com/munificent/wren","homepage":"http://munificent.github.io/wren/","size":5823,"stargazers_count":755,"watchers_count":755,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":73,"mirror_url":null,"open_issues_count":39,"forks":73,"open_issues":39,"watchers":755,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/munificent/wren/pulls/295"},"html":{"href":"https://github.com/munificent/wren/pull/295"},"issue":{"href":"https://api.github.com/repos/munificent/wren/issues/295"},"comments":{"href":"https://api.github.com/repos/munificent/wren/issues/295/comments"},"review_comments":{"href":"https://api.github.com/repos/munificent/wren/pulls/295/comments"},"review_comment":{"href":"https://api.github.com/repos/munificent/wren/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/munificent/wren/pulls/295/commits"},"statuses":{"href":"https://api.github.com/repos/munificent/wren/statuses/48bdbc77459d443d21ca9157088d65bce49143f1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":720,"deletions":119,"changed_files":33}}