{"action":"created","issue":{"url":"https://api.github.com/repos/trealla-lang/trealla/issues/197","repository_url":"https://api.github.com/repos/trealla-lang/trealla","labels_url":"https://api.github.com/repos/trealla-lang/trealla/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/trealla-lang/trealla/issues/197/comments","events_url":"https://api.github.com/repos/trealla-lang/trealla/issues/197/events","html_url":"https://github.com/trealla-lang/trealla/issues/197","id":240068310,"number":197,"title":"Math functions outside of is/2","user":{"login":"dram","id":517130,"avatar_url":"https://avatars0.githubusercontent.com/u/517130?v=3","gravatar_id":"","url":"https://api.github.com/users/dram","html_url":"https://github.com/dram","followers_url":"https://api.github.com/users/dram/followers","following_url":"https://api.github.com/users/dram/following{/other_user}","gists_url":"https://api.github.com/users/dram/gists{/gist_id}","starred_url":"https://api.github.com/users/dram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dram/subscriptions","organizations_url":"https://api.github.com/users/dram/orgs","repos_url":"https://api.github.com/users/dram/repos","events_url":"https://api.github.com/users/dram/events{/privacy}","received_events_url":"https://api.github.com/users/dram/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-03T05:07:04Z","updated_at":"2017-07-03T10:16:24Z","closed_at":"2017-07-03T10:16:24Z","body":"It seems that in Trealla math functions have effect outside of is/2, e.g.:\r\n\r\n```\r\n:- initialization(main).\r\n\r\nlog(S) :- write(S), nl.\r\n\r\nmain :- log(foo), halt.\r\n```\r\n\r\nTrealla output:\r\n\r\n```\r\n% tpl --trace foo.pro\r\nCall: ?-main\r\nCall: main\r\nExit: main\r\nCall: log(foo)\r\nERROR: ERROR ABORT_TYPEERROR\r\n```\r\n\r\nIt runs on GProlog, SWI and Yap."},"comment":{"url":"https://api.github.com/repos/trealla-lang/trealla/issues/comments/312607374","html_url":"https://github.com/trealla-lang/trealla/issues/197#issuecomment-312607374","issue_url":"https://api.github.com/repos/trealla-lang/trealla/issues/197","id":312607374,"user":{"login":"dram","id":517130,"avatar_url":"https://avatars0.githubusercontent.com/u/517130?v=3","gravatar_id":"","url":"https://api.github.com/users/dram","html_url":"https://github.com/dram","followers_url":"https://api.github.com/users/dram/followers","following_url":"https://api.github.com/users/dram/following{/other_user}","gists_url":"https://api.github.com/users/dram/gists{/gist_id}","starred_url":"https://api.github.com/users/dram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dram/subscriptions","organizations_url":"https://api.github.com/users/dram/orgs","repos_url":"https://api.github.com/users/dram/repos","events_url":"https://api.github.com/users/dram/events{/privacy}","received_events_url":"https://api.github.com/users/dram/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T10:16:24Z","updated_at":"2017-07-03T10:16:24Z","body":"Fix confirmed, thanks."}}
{"actor":{"display_login":"dram"}}