{"action":"created","issue":{"url":"https://api.github.com/repos/gobstones/gs-weblang-core/issues/33","repository_url":"https://api.github.com/repos/gobstones/gs-weblang-core","labels_url":"https://api.github.com/repos/gobstones/gs-weblang-core/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/gobstones/gs-weblang-core/issues/33/comments","events_url":"https://api.github.com/repos/gobstones/gs-weblang-core/issues/33/events","html_url":"https://github.com/gobstones/gs-weblang-core/pull/33","id":193263082,"number":33,"title":"Procedures defined before the program doesn't work","user":{"login":"rodri042","id":1631752,"avatar_url":"https://avatars.githubusercontent.com/u/1631752?v=3","gravatar_id":"","url":"https://api.github.com/users/rodri042","html_url":"https://github.com/rodri042","followers_url":"https://api.github.com/users/rodri042/followers","following_url":"https://api.github.com/users/rodri042/following{/other_user}","gists_url":"https://api.github.com/users/rodri042/gists{/gist_id}","starred_url":"https://api.github.com/users/rodri042/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodri042/subscriptions","organizations_url":"https://api.github.com/users/rodri042/orgs","repos_url":"https://api.github.com/users/rodri042/repos","events_url":"https://api.github.com/users/rodri042/events{/privacy}","received_events_url":"https://api.github.com/users/rodri042/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-03T03:42:47Z","updated_at":"2016-12-05T03:23:13Z","closed_at":"2016-12-05T03:21:36Z","pull_request":{"url":"https://api.github.com/repos/gobstones/gs-weblang-core/pulls/33","html_url":"https://github.com/gobstones/gs-weblang-core/pull/33","diff_url":"https://github.com/gobstones/gs-weblang-core/pull/33.diff","patch_url":"https://github.com/gobstones/gs-weblang-core/pull/33.patch"},"body":"![image](https://cloud.githubusercontent.com/assets/1631752/20856497/cf6116e0-b918-11e6-9a2a-019607552649.png)\r\n\r\n@AlvarezAriel\r\nLa solución es alto hack, es más una excusa para preguntarte porque seguro se resuelve de alguna forma más feliz.\r\nEntiendo que el problema es que cuando el operando izquierdo de **(** -en este caso **PonerUnaRoja**- es todavía desconocido, su valor es:\r\n```js\r\n{ token: \r\n   OriginalSymbol {\r\n     range: { start: [Object], end: [Object] },\r\n     value: 'PonerUnaRoja',\r\n     arity: 'name' },\r\n  value: 'PonerUnaRoja' }\r\n```\r\n... pero que cuando ya fue definido anteriormente su valor es:\r\n```js\r\nOriginalSymbol {\r\n  range: { start: { row: 10, column: 5 }, end: { row: 10, column: 16 } },\r\n  value: 'PonerUnaRoja',\r\n  arity: 'name' }\r\n```\r\ny esto hace que rompa. Si podés contarme un poco cómo funciona eso sería genial :smile: "},"comment":{"url":"https://api.github.com/repos/gobstones/gs-weblang-core/issues/comments/264759838","html_url":"https://github.com/gobstones/gs-weblang-core/pull/33#issuecomment-264759838","issue_url":"https://api.github.com/repos/gobstones/gs-weblang-core/issues/33","id":264759838,"user":{"login":"AlvarezAriel","id":2522433,"avatar_url":"https://avatars.githubusercontent.com/u/2522433?v=3","gravatar_id":"","url":"https://api.github.com/users/AlvarezAriel","html_url":"https://github.com/AlvarezAriel","followers_url":"https://api.github.com/users/AlvarezAriel/followers","following_url":"https://api.github.com/users/AlvarezAriel/following{/other_user}","gists_url":"https://api.github.com/users/AlvarezAriel/gists{/gist_id}","starred_url":"https://api.github.com/users/AlvarezAriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlvarezAriel/subscriptions","organizations_url":"https://api.github.com/users/AlvarezAriel/orgs","repos_url":"https://api.github.com/users/AlvarezAriel/repos","events_url":"https://api.github.com/users/AlvarezAriel/events{/privacy}","received_events_url":"https://api.github.com/users/AlvarezAriel/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T03:23:13Z","updated_at":"2016-12-05T03:23:13Z","body":"El cambio arregla el problema. En una story posterior habría que dejar de hacer una resolución lazy y tener una tabla de identificadores de funciones sin resolver. Para que el error de _función no declarada_ se encuentre en tiempo de parseo y no durante la interpretación."}}
{"actor":{"display_login":"AlvarezAriel"}}