{"action":"created","comment":{"url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments/223302159","pull_request_review_id":162392744,"id":223302159,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzMwMjE1OQ==","diff_hunk":"@@ -76,3 +76,24 @@ For `trn` and `ref` we need to return a locally immutable reference capability t\n ### Reading from a `tag` variable\n \n This one is easy: `tag` variables are opaque! They can't be read from.\n+\n+## Writing to the field of an object\n+\n+Like reading the field of an object, writing to a field depends on the reference capability of the object reference being stored and the reference capability of the origin object containing the field. The reference capability of the object being stored must not violate the guarantees made by the origin object's reference capability. For example, a val object reference can be stored in an iso origin. This is because the tag reference capability guarantees that no alias to that object exists which could violate the guarantees that the iso capability makes.\n+\n+Here's a simplified version of the table above that shows which reference capabilities can be stored the field of an origin object.","path":"capabilities/combining-capabilities.md","position":9,"original_position":9,"commit_id":"917446e5d6abca4c755d75cdfd024b354e845d81","original_commit_id":"917446e5d6abca4c755d75cdfd024b354e845d81","user":{"login":"mfelsche","id":1152667,"node_id":"MDQ6VXNlcjExNTI2Njc=","avatar_url":"https://avatars0.githubusercontent.com/u/1152667?v=4","gravatar_id":"","url":"https://api.github.com/users/mfelsche","html_url":"https://github.com/mfelsche","followers_url":"https://api.github.com/users/mfelsche/followers","following_url":"https://api.github.com/users/mfelsche/following{/other_user}","gists_url":"https://api.github.com/users/mfelsche/gists{/gist_id}","starred_url":"https://api.github.com/users/mfelsche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfelsche/subscriptions","organizations_url":"https://api.github.com/users/mfelsche/orgs","repos_url":"https://api.github.com/users/mfelsche/repos","events_url":"https://api.github.com/users/mfelsche/events{/privacy}","received_events_url":"https://api.github.com/users/mfelsche/received_events","type":"User","site_admin":false},"body":"typo: `can be stored **in** the field of an origin object`","created_at":"2018-10-08T09:36:21Z","updated_at":"2018-10-08T09:41:14Z","html_url":"https://github.com/ponylang/pony-tutorial/pull/325#discussion_r223302159","pull_request_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments/223302159"},"html":{"href":"https://github.com/ponylang/pony-tutorial/pull/325#discussion_r223302159"},"pull_request":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325"}}},"pull_request":{"url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325","id":220376861,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMzc2ODYx","html_url":"https://github.com/ponylang/pony-tutorial/pull/325","diff_url":"https://github.com/ponylang/pony-tutorial/pull/325.diff","patch_url":"https://github.com/ponylang/pony-tutorial/pull/325.patch","issue_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/325","number":325,"state":"open","locked":false,"title":"Add explanation of safe-to-write relation between capabilities","user":{"login":"Theodus","id":9407624,"node_id":"MDQ6VXNlcjk0MDc2MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/9407624?v=4","gravatar_id":"","url":"https://api.github.com/users/Theodus","html_url":"https://github.com/Theodus","followers_url":"https://api.github.com/users/Theodus/followers","following_url":"https://api.github.com/users/Theodus/following{/other_user}","gists_url":"https://api.github.com/users/Theodus/gists{/gist_id}","starred_url":"https://api.github.com/users/Theodus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Theodus/subscriptions","organizations_url":"https://api.github.com/users/Theodus/orgs","repos_url":"https://api.github.com/users/Theodus/repos","events_url":"https://api.github.com/users/Theodus/events{/privacy}","received_events_url":"https://api.github.com/users/Theodus/received_events","type":"User","site_admin":false},"body":"This addresses a lack of explanation for when it is safe to write to the fields of objects. Though this relationship can be inferred based on the viewpoint adaptation table, it definitely requires some introduction for newcomers to the language.","created_at":"2018-10-04T13:28:06Z","updated_at":"2018-10-08T09:41:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72e841fa09881def0733e47ca5ca2cc548b3b2a5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325/commits","review_comments_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325/comments","review_comment_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/325/comments","statuses_url":"https://api.github.com/repos/ponylang/pony-tutorial/statuses/917446e5d6abca4c755d75cdfd024b354e845d81","head":{"label":"ponylang:safe-to-write","ref":"safe-to-write","sha":"917446e5d6abca4c755d75cdfd024b354e845d81","user":{"login":"ponylang","id":12997238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTk3MjM4","avatar_url":"https://avatars0.githubusercontent.com/u/12997238?v=4","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"repo":{"id":29130823,"node_id":"MDEwOlJlcG9zaXRvcnkyOTEzMDgyMw==","name":"pony-tutorial","full_name":"ponylang/pony-tutorial","private":false,"owner":{"login":"ponylang","id":12997238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTk3MjM4","avatar_url":"https://avatars0.githubusercontent.com/u/12997238?v=4","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ponylang/pony-tutorial","description":":horse: Tutorial for the Pony programming language","fork":false,"url":"https://api.github.com/repos/ponylang/pony-tutorial","forks_url":"https://api.github.com/repos/ponylang/pony-tutorial/forks","keys_url":"https://api.github.com/repos/ponylang/pony-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ponylang/pony-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ponylang/pony-tutorial/teams","hooks_url":"https://api.github.com/repos/ponylang/pony-tutorial/hooks","issue_events_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/ponylang/pony-tutorial/events","assignees_url":"https://api.github.com/repos/ponylang/pony-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/ponylang/pony-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/ponylang/pony-tutorial/tags","blobs_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ponylang/pony-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/ponylang/pony-tutorial/languages","stargazers_url":"https://api.github.com/repos/ponylang/pony-tutorial/stargazers","contributors_url":"https://api.github.com/repos/ponylang/pony-tutorial/contributors","subscribers_url":"https://api.github.com/repos/ponylang/pony-tutorial/subscribers","subscription_url":"https://api.github.com/repos/ponylang/pony-tutorial/subscription","commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/ponylang/pony-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/ponylang/pony-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/ponylang/pony-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ponylang/pony-tutorial/merges","archive_url":"https://api.github.com/repos/ponylang/pony-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ponylang/pony-tutorial/downloads","issues_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/ponylang/pony-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/ponylang/pony-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ponylang/pony-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/ponylang/pony-tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/ponylang/pony-tutorial/deployments","created_at":"2015-01-12T10:39:37Z","updated_at":"2018-10-08T01:03:52Z","pushed_at":"2018-10-05T11:52:15Z","git_url":"git://github.com/ponylang/pony-tutorial.git","ssh_url":"git@github.com:ponylang/pony-tutorial.git","clone_url":"https://github.com/ponylang/pony-tutorial.git","svn_url":"https://github.com/ponylang/pony-tutorial","homepage":"http://tutorial.ponylang.org","size":654,"stargazers_count":106,"watchers_count":106,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"archived":false,"open_issues_count":46,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":82,"open_issues":46,"watchers":106,"default_branch":"master"}},"base":{"label":"ponylang:master","ref":"master","sha":"4a065c86cf4764e3f38dc024079df55d18f875bb","user":{"login":"ponylang","id":12997238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTk3MjM4","avatar_url":"https://avatars0.githubusercontent.com/u/12997238?v=4","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"repo":{"id":29130823,"node_id":"MDEwOlJlcG9zaXRvcnkyOTEzMDgyMw==","name":"pony-tutorial","full_name":"ponylang/pony-tutorial","private":false,"owner":{"login":"ponylang","id":12997238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTk3MjM4","avatar_url":"https://avatars0.githubusercontent.com/u/12997238?v=4","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ponylang/pony-tutorial","description":":horse: Tutorial for the Pony programming language","fork":false,"url":"https://api.github.com/repos/ponylang/pony-tutorial","forks_url":"https://api.github.com/repos/ponylang/pony-tutorial/forks","keys_url":"https://api.github.com/repos/ponylang/pony-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ponylang/pony-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ponylang/pony-tutorial/teams","hooks_url":"https://api.github.com/repos/ponylang/pony-tutorial/hooks","issue_events_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/ponylang/pony-tutorial/events","assignees_url":"https://api.github.com/repos/ponylang/pony-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/ponylang/pony-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/ponylang/pony-tutorial/tags","blobs_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ponylang/pony-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/ponylang/pony-tutorial/languages","stargazers_url":"https://api.github.com/repos/ponylang/pony-tutorial/stargazers","contributors_url":"https://api.github.com/repos/ponylang/pony-tutorial/contributors","subscribers_url":"https://api.github.com/repos/ponylang/pony-tutorial/subscribers","subscription_url":"https://api.github.com/repos/ponylang/pony-tutorial/subscription","commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/ponylang/pony-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/ponylang/pony-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/ponylang/pony-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ponylang/pony-tutorial/merges","archive_url":"https://api.github.com/repos/ponylang/pony-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ponylang/pony-tutorial/downloads","issues_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/ponylang/pony-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/ponylang/pony-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ponylang/pony-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/ponylang/pony-tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/ponylang/pony-tutorial/deployments","created_at":"2015-01-12T10:39:37Z","updated_at":"2018-10-08T01:03:52Z","pushed_at":"2018-10-05T11:52:15Z","git_url":"git://github.com/ponylang/pony-tutorial.git","ssh_url":"git@github.com:ponylang/pony-tutorial.git","clone_url":"https://github.com/ponylang/pony-tutorial.git","svn_url":"https://github.com/ponylang/pony-tutorial","homepage":"http://tutorial.ponylang.org","size":654,"stargazers_count":106,"watchers_count":106,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"archived":false,"open_issues_count":46,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":82,"open_issues":46,"watchers":106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325"},"html":{"href":"https://github.com/ponylang/pony-tutorial/pull/325"},"issue":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/issues/325"},"comments":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/statuses/917446e5d6abca4c755d75cdfd024b354e845d81"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mfelsche"}}