{"action":"created","issue":{"url":"https://api.github.com/repos/tomassedovic/tcod-rs/issues/191","labels_url":"https://api.github.com/repos/tomassedovic/tcod-rs/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/tomassedovic/tcod-rs/issues/191/comments","events_url":"https://api.github.com/repos/tomassedovic/tcod-rs/issues/191/events","html_url":"https://github.com/tomassedovic/tcod-rs/pull/191","id":103908165,"number":191,"title":"Line toolkit","user":{"login":"tomob","id":1015581,"avatar_url":"https://avatars.githubusercontent.com/u/1015581?v=3","gravatar_id":"","url":"https://api.github.com/users/tomob","html_url":"https://github.com/tomob","followers_url":"https://api.github.com/users/tomob/followers","following_url":"https://api.github.com/users/tomob/following{/other_user}","gists_url":"https://api.github.com/users/tomob/gists{/gist_id}","starred_url":"https://api.github.com/users/tomob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomob/subscriptions","organizations_url":"https://api.github.com/users/tomob/orgs","repos_url":"https://api.github.com/users/tomob/repos","events_url":"https://api.github.com/users/tomob/events{/privacy}","received_events_url":"https://api.github.com/users/tomob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-30T08:39:34Z","updated_at":"2015-08-30T12:17:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tomassedovic/tcod-rs/pulls/191","html_url":"https://github.com/tomassedovic/tcod-rs/pull/191","diff_url":"https://github.com/tomassedovic/tcod-rs/pull/191.diff","patch_url":"https://github.com/tomassedovic/tcod-rs/pull/191.patch"},"body":"Line sample – along with Line API.\r\n\r\nThe original API for drawing lines with a callback practically requires maintaining some global (static) state. This makes passing something reasonable, like a Rust closure, impossible. I'm contemplating adding a piece of C code to wrap line API with a C function that would take some user data, and in result allow for some tricks to pass rust closure or object.\r\n"},"comment":{"url":"https://api.github.com/repos/tomassedovic/tcod-rs/issues/comments/136131849","html_url":"https://github.com/tomassedovic/tcod-rs/pull/191#issuecomment-136131849","issue_url":"https://api.github.com/repos/tomassedovic/tcod-rs/issues/191","id":136131849,"user":{"login":"Gustorn","id":2189776,"avatar_url":"https://avatars.githubusercontent.com/u/2189776?v=3","gravatar_id":"","url":"https://api.github.com/users/Gustorn","html_url":"https://github.com/Gustorn","followers_url":"https://api.github.com/users/Gustorn/followers","following_url":"https://api.github.com/users/Gustorn/following{/other_user}","gists_url":"https://api.github.com/users/Gustorn/gists{/gist_id}","starred_url":"https://api.github.com/users/Gustorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gustorn/subscriptions","organizations_url":"https://api.github.com/users/Gustorn/orgs","repos_url":"https://api.github.com/users/Gustorn/repos","events_url":"https://api.github.com/users/Gustorn/events{/privacy}","received_events_url":"https://api.github.com/users/Gustorn/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T12:17:15Z","updated_at":"2015-08-30T12:17:15Z","body":"As an additional note: isn't the whole line drawing toolkit a blob of mumtable global state? Because if that's the case we really shouldn't allow more than one instance to exist at any time."}}