{"action":"created","issue":{"url":"https://api.github.com/repos/5Pilow/LeekScript/issues/7","repository_url":"https://api.github.com/repos/5Pilow/LeekScript","labels_url":"https://api.github.com/repos/5Pilow/LeekScript/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/5Pilow/LeekScript/issues/7/comments","events_url":"https://api.github.com/repos/5Pilow/LeekScript/issues/7/events","html_url":"https://github.com/5Pilow/LeekScript/pull/7","id":141587936,"number":7,"title":"Overloading function operators and various fixes","user":{"login":"LBaali","id":17759706,"avatar_url":"https://avatars.githubusercontent.com/u/17759706?v=3","gravatar_id":"","url":"https://api.github.com/users/LBaali","html_url":"https://github.com/LBaali","followers_url":"https://api.github.com/users/LBaali/followers","following_url":"https://api.github.com/users/LBaali/following{/other_user}","gists_url":"https://api.github.com/users/LBaali/gists{/gist_id}","starred_url":"https://api.github.com/users/LBaali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBaali/subscriptions","organizations_url":"https://api.github.com/users/LBaali/orgs","repos_url":"https://api.github.com/users/LBaali/repos","events_url":"https://api.github.com/users/LBaali/events{/privacy}","received_events_url":"https://api.github.com/users/LBaali/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-17T13:46:53Z","updated_at":"2016-03-18T12:07:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/5Pilow/LeekScript/pulls/7","html_url":"https://github.com/5Pilow/LeekScript/pull/7","diff_url":"https://github.com/5Pilow/LeekScript/pull/7.diff","patch_url":"https://github.com/5Pilow/LeekScript/pull/7.patch"},"body":"Overloaded functions operators (+, ...) to take pointers\r\n\r\n- `+([1], 2) ==> [1, 2]`\r\n- `[1, 2, 3].foldLeft(+,1) ==> 7`\r\n- `*('a', 2) ==> 'aa'`\r\n\r\nCorrected an issue in function calls on objects where the wrong `argumentType` was used to compile an argument because of the offset from `this`.\r\n\r\nRemoved code to avoid the use of `jit_insn_pow`, `jit_insn_round` and `jit_insn_cos` because the fix was not correct and the problem only occurs on my architecture.\r\n\r\nFound issue on type of the value created when declaring a new variable"},"comment":{"url":"https://api.github.com/repos/5Pilow/LeekScript/issues/comments/198325644","html_url":"https://github.com/5Pilow/LeekScript/pull/7#issuecomment-198325644","issue_url":"https://api.github.com/repos/5Pilow/LeekScript/issues/7","id":198325644,"user":{"login":"LBaali","id":17759706,"avatar_url":"https://avatars.githubusercontent.com/u/17759706?v=3","gravatar_id":"","url":"https://api.github.com/users/LBaali","html_url":"https://github.com/LBaali","followers_url":"https://api.github.com/users/LBaali/followers","following_url":"https://api.github.com/users/LBaali/following{/other_user}","gists_url":"https://api.github.com/users/LBaali/gists{/gist_id}","starred_url":"https://api.github.com/users/LBaali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBaali/subscriptions","organizations_url":"https://api.github.com/users/LBaali/orgs","repos_url":"https://api.github.com/users/LBaali/repos","events_url":"https://api.github.com/users/LBaali/events{/privacy}","received_events_url":"https://api.github.com/users/LBaali/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T12:07:18Z","updated_at":"2016-03-18T12:07:18Z","body":"With new implementations, it is possible to use \r\n`let p = * p('test', 2) ==> 'testtest'`\r\nand the operation `+(1, 2)` doesn't convert the numbers to pointers (it is as fast as `1 + 2`).\r\n\r\nLast commit also corrected some methods definitions in `StringSTD` and added tests for these methods."}}