{"action":"created","issue":{"url":"https://api.github.com/repos/nimble-dev/nimble/issues/92","repository_url":"https://api.github.com/repos/nimble-dev/nimble","labels_url":"https://api.github.com/repos/nimble-dev/nimble/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/nimble-dev/nimble/issues/92/comments","events_url":"https://api.github.com/repos/nimble-dev/nimble/issues/92/events","html_url":"https://github.com/nimble-dev/nimble/issues/92","id":102449985,"number":92,"title":"correct handling of 'pi' in NIMBLE compiler","user":{"login":"danielturek","id":4511457,"avatar_url":"https://avatars.githubusercontent.com/u/4511457?v=3","gravatar_id":"","url":"https://api.github.com/users/danielturek","html_url":"https://github.com/danielturek","followers_url":"https://api.github.com/users/danielturek/followers","following_url":"https://api.github.com/users/danielturek/following{/other_user}","gists_url":"https://api.github.com/users/danielturek/gists{/gist_id}","starred_url":"https://api.github.com/users/danielturek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielturek/subscriptions","organizations_url":"https://api.github.com/users/danielturek/orgs","repos_url":"https://api.github.com/users/danielturek/repos","events_url":"https://api.github.com/users/danielturek/events{/privacy}","received_events_url":"https://api.github.com/users/danielturek/received_events","type":"User","site_admin":false},"labels":[{"id":106487466,"url":"https://api.github.com/repos/nimble-dev/nimble/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"perrydv","id":8012337,"avatar_url":"https://avatars.githubusercontent.com/u/8012337?v=3","gravatar_id":"","url":"https://api.github.com/users/perrydv","html_url":"https://github.com/perrydv","followers_url":"https://api.github.com/users/perrydv/followers","following_url":"https://api.github.com/users/perrydv/following{/other_user}","gists_url":"https://api.github.com/users/perrydv/gists{/gist_id}","starred_url":"https://api.github.com/users/perrydv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrydv/subscriptions","organizations_url":"https://api.github.com/users/perrydv/orgs","repos_url":"https://api.github.com/users/perrydv/repos","events_url":"https://api.github.com/users/perrydv/events{/privacy}","received_events_url":"https://api.github.com/users/perrydv/received_events","type":"User","site_admin":false},"assignees":[{"login":"perrydv","id":8012337,"avatar_url":"https://avatars.githubusercontent.com/u/8012337?v=3","gravatar_id":"","url":"https://api.github.com/users/perrydv","html_url":"https://github.com/perrydv","followers_url":"https://api.github.com/users/perrydv/followers","following_url":"https://api.github.com/users/perrydv/following{/other_user}","gists_url":"https://api.github.com/users/perrydv/gists{/gist_id}","starred_url":"https://api.github.com/users/perrydv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrydv/subscriptions","organizations_url":"https://api.github.com/users/perrydv/orgs","repos_url":"https://api.github.com/users/perrydv/repos","events_url":"https://api.github.com/users/perrydv/events{/privacy}","received_events_url":"https://api.github.com/users/perrydv/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2015-08-21T19:45:42Z","updated_at":"2016-11-16T18:27:38Z","closed_at":null,"body":"pi doesn't seem to be handled by the compiler.  Reproducible example below.\n\nThe two different uses of pi give two different errors.  The error messages are copied below on the lines which cause them.\n\nnfDef <- nimbleFunction(\n    setup = function() {},\n    run = function() {\n        a <- pi    ## Error: Error, LHS of  a <- pi  is not in typeEnv or symTab but it cannot be added now.\n        print(a)\n        b <- 2 \\* pi   ## Error in max(a1nDim, a2nDim) : invalid 'type' (S4) of argument\n        print(b)\n    }\n)\nRnf <- nfDef()\nRnf$run()\nCnf <- compileNimble(Rnf)    ## ERROR\nCnf$run()\n"},"comment":{"url":"https://api.github.com/repos/nimble-dev/nimble/issues/comments/261029481","html_url":"https://github.com/nimble-dev/nimble/issues/92#issuecomment-261029481","issue_url":"https://api.github.com/repos/nimble-dev/nimble/issues/92","id":261029481,"user":{"login":"perrydv","id":8012337,"avatar_url":"https://avatars.githubusercontent.com/u/8012337?v=3","gravatar_id":"","url":"https://api.github.com/users/perrydv","html_url":"https://github.com/perrydv","followers_url":"https://api.github.com/users/perrydv/followers","following_url":"https://api.github.com/users/perrydv/following{/other_user}","gists_url":"https://api.github.com/users/perrydv/gists{/gist_id}","starred_url":"https://api.github.com/users/perrydv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrydv/subscriptions","organizations_url":"https://api.github.com/users/perrydv/orgs","repos_url":"https://api.github.com/users/perrydv/repos","events_url":"https://api.github.com/users/perrydv/events{/privacy}","received_events_url":"https://api.github.com/users/perrydv/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T18:27:38Z","updated_at":"2016-11-16T18:27:38Z","body":"I am not clear that this is a good idea. I think people use pi as a variable name in BUGS code.   \n> On Nov 16, 2016, at 9:16 AM, Daniel Turek <notifications@github.com> wrote:\n> \n> In favour also.\n> \n> —\n> You are receiving this because you were assigned.\n> Reply to this email directly, view it on GitHub <https://github.com/nimble-dev/nimble/issues/92#issuecomment-261009606>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHpCMajVZR-eYOJD4HI1_xUpnhRN8Mhnks5q-zqFgaJpZM4FwHs1>.\n> \n\n"}}
{"actor":{"display_login":"perrydv"}}