{"action":"created","issue":{"url":"https://api.github.com/repos/aurusov/raox/issues/461","repository_url":"https://api.github.com/repos/aurusov/raox","labels_url":"https://api.github.com/repos/aurusov/raox/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/aurusov/raox/issues/461/comments","events_url":"https://api.github.com/repos/aurusov/raox/issues/461/events","html_url":"https://github.com/aurusov/raox/issues/461","id":179077084,"number":461,"title":"Создать можно, присвоить нельзя","user":{"login":"aurusov","id":5585202,"avatar_url":"https://avatars.githubusercontent.com/u/5585202?v=3","gravatar_id":"","url":"https://api.github.com/users/aurusov","html_url":"https://github.com/aurusov","followers_url":"https://api.github.com/users/aurusov/followers","following_url":"https://api.github.com/users/aurusov/following{/other_user}","gists_url":"https://api.github.com/users/aurusov/gists{/gist_id}","starred_url":"https://api.github.com/users/aurusov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurusov/subscriptions","organizations_url":"https://api.github.com/users/aurusov/orgs","repos_url":"https://api.github.com/users/aurusov/repos","events_url":"https://api.github.com/users/aurusov/events{/privacy}","received_events_url":"https://api.github.com/users/aurusov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurusov/raox/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"bogachev-pa","id":6528492,"avatar_url":"https://avatars.githubusercontent.com/u/6528492?v=3","gravatar_id":"","url":"https://api.github.com/users/bogachev-pa","html_url":"https://github.com/bogachev-pa","followers_url":"https://api.github.com/users/bogachev-pa/followers","following_url":"https://api.github.com/users/bogachev-pa/following{/other_user}","gists_url":"https://api.github.com/users/bogachev-pa/gists{/gist_id}","starred_url":"https://api.github.com/users/bogachev-pa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogachev-pa/subscriptions","organizations_url":"https://api.github.com/users/bogachev-pa/orgs","repos_url":"https://api.github.com/users/bogachev-pa/repos","events_url":"https://api.github.com/users/bogachev-pa/events{/privacy}","received_events_url":"https://api.github.com/users/bogachev-pa/received_events","type":"User","site_admin":false},"assignees":[{"login":"bogachev-pa","id":6528492,"avatar_url":"https://avatars.githubusercontent.com/u/6528492?v=3","gravatar_id":"","url":"https://api.github.com/users/bogachev-pa","html_url":"https://github.com/bogachev-pa","followers_url":"https://api.github.com/users/bogachev-pa/followers","following_url":"https://api.github.com/users/bogachev-pa/following{/other_user}","gists_url":"https://api.github.com/users/bogachev-pa/gists{/gist_id}","starred_url":"https://api.github.com/users/bogachev-pa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogachev-pa/subscriptions","organizations_url":"https://api.github.com/users/bogachev-pa/orgs","repos_url":"https://api.github.com/users/bogachev-pa/repos","events_url":"https://api.github.com/users/bogachev-pa/events{/privacy}","received_events_url":"https://api.github.com/users/bogachev-pa/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-25T09:26:07Z","updated_at":"2016-09-25T09:34:55Z","closed_at":null,"body":"Внутри события можно создать ресурс, но нельзя присвоить переменной `заготовка_ `.\r\n\r\n```erlang\r\nenum Тип_заготовки {вал, диск}\r\nenum Тип_станка {фрезерный, токарный}\r\n\r\ntype Заготовка {\r\n\tint номер;\r\n\tdouble вес;\r\n\tboolean срочная;\r\n\tТип_заготовки тип;\r\n}\r\n\r\ntype Станок {\r\n\tint номер;\r\n\tString название;\r\n\tТип_станка тип;\r\n}\r\n\r\nresource заготовка = Заготовка.create(1, 0.420, false, Тип_заготовки.вал);\r\nresource станок = Станок.create(1, \"16К20\", Тип_станка.токарный);\r\n\r\nevent Поступление_заготовки() {\r\n\tresource заготовка_ = Заготовка.create(1, 0.420, false, Тип_заготовки.вал); // имя ресурса определено локально\r\n\tзаготовка_.вес = 0; // обращение к ресурсу по локальному имени\r\n    заготовка.вес = 0; // обращение к ресурсу по глобальному имени\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aurusov/raox/issues/comments/249412106","html_url":"https://github.com/aurusov/raox/issues/461#issuecomment-249412106","issue_url":"https://api.github.com/repos/aurusov/raox/issues/461","id":249412106,"user":{"login":"bogachev-pa","id":6528492,"avatar_url":"https://avatars.githubusercontent.com/u/6528492?v=3","gravatar_id":"","url":"https://api.github.com/users/bogachev-pa","html_url":"https://github.com/bogachev-pa","followers_url":"https://api.github.com/users/bogachev-pa/followers","following_url":"https://api.github.com/users/bogachev-pa/following{/other_user}","gists_url":"https://api.github.com/users/bogachev-pa/gists{/gist_id}","starred_url":"https://api.github.com/users/bogachev-pa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogachev-pa/subscriptions","organizations_url":"https://api.github.com/users/bogachev-pa/orgs","repos_url":"https://api.github.com/users/bogachev-pa/repos","events_url":"https://api.github.com/users/bogachev-pa/events{/privacy}","received_events_url":"https://api.github.com/users/bogachev-pa/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T09:34:55Z","updated_at":"2016-09-25T09:34:55Z","body":"внутри события просто пишите `val заготовка_ =`\r\nключевое слово ресурс - для глобальных объявлений"}}
{"actor":{"display_login":"bogachev-pa"}}