{"action":"created","issue":{"url":"https://api.github.com/repos/fasterthanlime/rock/issues/782","labels_url":"https://api.github.com/repos/fasterthanlime/rock/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/fasterthanlime/rock/issues/782/comments","events_url":"https://api.github.com/repos/fasterthanlime/rock/issues/782/events","html_url":"https://github.com/fasterthanlime/rock/issues/782","id":38969907,"number":782,"title":"::= syntax in covers","user":{"login":"davidhesselbom","id":4319680,"avatar_url":"https://avatars.githubusercontent.com/u/4319680?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhesselbom","html_url":"https://github.com/davidhesselbom","followers_url":"https://api.github.com/users/davidhesselbom/followers","following_url":"https://api.github.com/users/davidhesselbom/following{/other_user}","gists_url":"https://api.github.com/users/davidhesselbom/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhesselbom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhesselbom/subscriptions","organizations_url":"https://api.github.com/users/davidhesselbom/orgs","repos_url":"https://api.github.com/users/davidhesselbom/repos","events_url":"https://api.github.com/users/davidhesselbom/events{/privacy}","received_events_url":"https://api.github.com/users/davidhesselbom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fasterthanlime/rock/labels/Bug","name":"Bug","color":"eeeeee"},{"url":"https://api.github.com/repos/fasterthanlime/rock/labels/Middle-end","name":"Middle-end","color":"333333"}],"state":"closed","locked":false,"assignee":{"login":"fasterthanlime","id":7998310,"avatar_url":"https://avatars.githubusercontent.com/u/7998310?v=3","gravatar_id":"","url":"https://api.github.com/users/fasterthanlime","html_url":"https://github.com/fasterthanlime","followers_url":"https://api.github.com/users/fasterthanlime/followers","following_url":"https://api.github.com/users/fasterthanlime/following{/other_user}","gists_url":"https://api.github.com/users/fasterthanlime/gists{/gist_id}","starred_url":"https://api.github.com/users/fasterthanlime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fasterthanlime/subscriptions","organizations_url":"https://api.github.com/users/fasterthanlime/orgs","repos_url":"https://api.github.com/users/fasterthanlime/repos","events_url":"https://api.github.com/users/fasterthanlime/events{/privacy}","received_events_url":"https://api.github.com/users/fasterthanlime/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/fasterthanlime/rock/milestones/10","html_url":"https://github.com/fasterthanlime/rock/milestones/0.9.9","labels_url":"https://api.github.com/repos/fasterthanlime/rock/milestones/10/labels","id":454652,"number":10,"title":"0.9.9","description":"codename \"lena\"","creator":{"login":"nddrylliog","id":88795,"avatar_url":"https://avatars.githubusercontent.com/u/88795?v=3","gravatar_id":"","url":"https://api.github.com/users/nddrylliog","html_url":"https://github.com/nddrylliog","followers_url":"https://api.github.com/users/nddrylliog/followers","following_url":"https://api.github.com/users/nddrylliog/following{/other_user}","gists_url":"https://api.github.com/users/nddrylliog/gists{/gist_id}","starred_url":"https://api.github.com/users/nddrylliog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nddrylliog/subscriptions","organizations_url":"https://api.github.com/users/nddrylliog/orgs","repos_url":"https://api.github.com/users/nddrylliog/repos","events_url":"https://api.github.com/users/nddrylliog/events{/privacy}","received_events_url":"https://api.github.com/users/nddrylliog/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":49,"state":"open","created_at":"2013-10-14T18:06:10Z","updated_at":"2015-07-10T21:22:52Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2014-07-29T09:00:33Z","updated_at":"2015-11-17T13:02:10Z","closed_at":"2014-08-15T23:24:11Z","body":"Why can't covers use the ::= syntax?\r\n\r\n```ooc\r\nimport math\r\n\r\n// Does not build\r\nPointCoverA : cover {\r\n    x, y: Float\r\n    Norm ::= (this x pow(2.0f) + this y pow(2.0f)) sqrt()\r\n}\r\n\r\n// Builds just fine\r\nPointCoverB: cover {\r\n    x, y: Float\r\n    Norm: Float { get { (this x pow(2.0f) + this y pow(2.0f)) sqrt() } }\r\n}\r\n\r\n// Builds just fine\r\nPointClassA: class {\r\n    x, y: Float\r\n    Norm ::= (this x pow(2.0f) + this y pow(2.0f)) sqrt()\r\n}\r\n\r\n// Builds just fine\r\nPointClassB: class {\r\n    x, y: Float\r\n    Norm: Float { get { (this x pow(2.0f) + this y pow(2.0f)) sqrt() } }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/fasterthanlime/rock/issues/comments/157364885","html_url":"https://github.com/fasterthanlime/rock/issues/782#issuecomment-157364885","issue_url":"https://api.github.com/repos/fasterthanlime/rock/issues/782","id":157364885,"user":{"login":"davidhesselbom","id":4319680,"avatar_url":"https://avatars.githubusercontent.com/u/4319680?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhesselbom","html_url":"https://github.com/davidhesselbom","followers_url":"https://api.github.com/users/davidhesselbom/followers","following_url":"https://api.github.com/users/davidhesselbom/following{/other_user}","gists_url":"https://api.github.com/users/davidhesselbom/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhesselbom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhesselbom/subscriptions","organizations_url":"https://api.github.com/users/davidhesselbom/orgs","repos_url":"https://api.github.com/users/davidhesselbom/repos","events_url":"https://api.github.com/users/davidhesselbom/events{/privacy}","received_events_url":"https://api.github.com/users/davidhesselbom/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T13:02:10Z","updated_at":"2015-11-17T13:02:10Z","body":"I know this was closed long ago, but I'm wondering about something related, and I don't think I should open a new issue about it. Here goes:\r\n\r\nCan covers have set properties?\r\n```ooc\r\nVector: cover {\r\n    x, y: Int\r\n    init: func\r\n}\r\nSize: cover from Vector extends Vector {\r\n    init: func\r\n    width: Int {\r\n        get { this x }\r\n        set(value) { this x = value }\r\n    }\r\n    height: Int {\r\n        get { this x }\r\n        set(value) { this x = value }\r\n    }\r\n}\r\n```\r\nThis doesn't build, because \r\n```\r\nerror: lvalue required as left operand of assignment\r\n         set(value) { this x = value }\r\n```\r\nand I'm not even sure what that means. "}}