{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/38267398","id":38267398,"diff_hunk":"@@ -106,11 +106,14 @@ function showerror(io::IO, ex::DomainError, bt; backtrace=true)\n         code = ccall(:jl_lookup_code_address, Any, (Ptr{Void}, Cint), b-1, true)\n         if length(code) == 5 && !code[4]  # code[4] == fromC\n             if code[1] in (:log, :log2, :log10, :sqrt) # TODO add :besselj, :besseli, :bessely, :besselk\n-                println(io,\"\\n$(code[1]) will only return a complex result if called with a complex argument.\")\n-                print(io, \"try $(code[1]) (complex(x))\")\n-            elseif (code[1] == :^ && code[2] == symbol(\"intfuncs.jl\")) || code[1] == :power_by_squaring\n-                println(io, \"\\nCannot raise an integer x to a negative power -n. Make x a float by adding\")\n-                print(io, \"a zero decimal (e.g. 2.0^-n instead of 2^-n), or write 1/x^n, float(x)^-n, or (x//1)^-n\")\n+                println(io,\"\\n$(code[1]) will only return a complex result if called with a complex argument. \",","path":"base/replutil.jl","position":9,"original_position":9,"commit_id":"959eb4cb8ed2a9bfc0fba1e3ea65e8873efa7bb0","original_commit_id":"959eb4cb8ed2a9bfc0fba1e3ea65e8873efa7bb0","user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"body":"Hmm, this probably should have been `print`, not `println`; you added an extra newline to the output.","created_at":"2015-08-30T00:32:59Z","updated_at":"2015-08-30T00:32:59Z","html_url":"https://github.com/JuliaLang/julia/pull/12822#discussion_r38267398","pull_request_url":"https://api.github.com/repos/JuliaLang/julia/pulls/12822","_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/38267398"},"html":{"href":"https://github.com/JuliaLang/julia/pull/12822#discussion_r38267398"},"pull_request":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12822"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/12822","id":43476648,"html_url":"https://github.com/JuliaLang/julia/pull/12822","diff_url":"https://github.com/JuliaLang/julia/pull/12822.diff","patch_url":"https://github.com/JuliaLang/julia/pull/12822.patch","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/12822","number":12822,"state":"closed","locked":false,"title":"Raise informative error for float/integer exponentiation that yields …","user":{"login":"felipenoris","id":12482900,"avatar_url":"https://avatars.githubusercontent.com/u/12482900?v=3","gravatar_id":"","url":"https://api.github.com/users/felipenoris","html_url":"https://github.com/felipenoris","followers_url":"https://api.github.com/users/felipenoris/followers","following_url":"https://api.github.com/users/felipenoris/following{/other_user}","gists_url":"https://api.github.com/users/felipenoris/gists{/gist_id}","starred_url":"https://api.github.com/users/felipenoris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipenoris/subscriptions","organizations_url":"https://api.github.com/users/felipenoris/orgs","repos_url":"https://api.github.com/users/felipenoris/repos","events_url":"https://api.github.com/users/felipenoris/events{/privacy}","received_events_url":"https://api.github.com/users/felipenoris/received_events","type":"User","site_admin":false},"body":"…Complex\r\n\r\nSame as #3024.\r\nDeals with the following cases:\r\n```julia\r\njulia> (-2)^(2.2)\r\njulia> (-2.0)^(2.2)\r\n```","created_at":"2015-08-27T03:41:31Z","updated_at":"2015-08-30T00:32:59Z","closed_at":"2015-08-30T00:28:53Z","merged_at":"2015-08-30T00:28:53Z","merge_commit_sha":"e122a9077e10155860428baee16274406d726693","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaLang/julia/pulls/12822/commits","review_comments_url":"https://api.github.com/repos/JuliaLang/julia/pulls/12822/comments","review_comment_url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/12822/comments","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/959eb4cb8ed2a9bfc0fba1e3ea65e8873efa7bb0","head":{"label":"felipenoris:fn/raise_complex","ref":"fn/raise_complex","sha":"959eb4cb8ed2a9bfc0fba1e3ea65e8873efa7bb0","user":{"login":"felipenoris","id":12482900,"avatar_url":"https://avatars.githubusercontent.com/u/12482900?v=3","gravatar_id":"","url":"https://api.github.com/users/felipenoris","html_url":"https://github.com/felipenoris","followers_url":"https://api.github.com/users/felipenoris/followers","following_url":"https://api.github.com/users/felipenoris/following{/other_user}","gists_url":"https://api.github.com/users/felipenoris/gists{/gist_id}","starred_url":"https://api.github.com/users/felipenoris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipenoris/subscriptions","organizations_url":"https://api.github.com/users/felipenoris/orgs","repos_url":"https://api.github.com/users/felipenoris/repos","events_url":"https://api.github.com/users/felipenoris/events{/privacy}","received_events_url":"https://api.github.com/users/felipenoris/received_events","type":"User","site_admin":false},"repo":{"id":39480281,"name":"julia","full_name":"felipenoris/julia","owner":{"login":"felipenoris","id":12482900,"avatar_url":"https://avatars.githubusercontent.com/u/12482900?v=3","gravatar_id":"","url":"https://api.github.com/users/felipenoris","html_url":"https://github.com/felipenoris","followers_url":"https://api.github.com/users/felipenoris/followers","following_url":"https://api.github.com/users/felipenoris/following{/other_user}","gists_url":"https://api.github.com/users/felipenoris/gists{/gist_id}","starred_url":"https://api.github.com/users/felipenoris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipenoris/subscriptions","organizations_url":"https://api.github.com/users/felipenoris/orgs","repos_url":"https://api.github.com/users/felipenoris/repos","events_url":"https://api.github.com/users/felipenoris/events{/privacy}","received_events_url":"https://api.github.com/users/felipenoris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/felipenoris/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":true,"url":"https://api.github.com/repos/felipenoris/julia","forks_url":"https://api.github.com/repos/felipenoris/julia/forks","keys_url":"https://api.github.com/repos/felipenoris/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felipenoris/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felipenoris/julia/teams","hooks_url":"https://api.github.com/repos/felipenoris/julia/hooks","issue_events_url":"https://api.github.com/repos/felipenoris/julia/issues/events{/number}","events_url":"https://api.github.com/repos/felipenoris/julia/events","assignees_url":"https://api.github.com/repos/felipenoris/julia/assignees{/user}","branches_url":"https://api.github.com/repos/felipenoris/julia/branches{/branch}","tags_url":"https://api.github.com/repos/felipenoris/julia/tags","blobs_url":"https://api.github.com/repos/felipenoris/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felipenoris/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felipenoris/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/felipenoris/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felipenoris/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/felipenoris/julia/languages","stargazers_url":"https://api.github.com/repos/felipenoris/julia/stargazers","contributors_url":"https://api.github.com/repos/felipenoris/julia/contributors","subscribers_url":"https://api.github.com/repos/felipenoris/julia/subscribers","subscription_url":"https://api.github.com/repos/felipenoris/julia/subscription","commits_url":"https://api.github.com/repos/felipenoris/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/felipenoris/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/felipenoris/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/felipenoris/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/felipenoris/julia/contents/{+path}","compare_url":"https://api.github.com/repos/felipenoris/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felipenoris/julia/merges","archive_url":"https://api.github.com/repos/felipenoris/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felipenoris/julia/downloads","issues_url":"https://api.github.com/repos/felipenoris/julia/issues{/number}","pulls_url":"https://api.github.com/repos/felipenoris/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/felipenoris/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/felipenoris/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felipenoris/julia/labels{/name}","releases_url":"https://api.github.com/repos/felipenoris/julia/releases{/id}","created_at":"2015-07-22T02:10:42Z","updated_at":"2015-07-22T02:10:47Z","pushed_at":"2015-08-29T17:14:42Z","git_url":"git://github.com/felipenoris/julia.git","ssh_url":"git@github.com:felipenoris/julia.git","clone_url":"https://github.com/felipenoris/julia.git","svn_url":"https://github.com/felipenoris/julia","homepage":"http://julialang.org/","size":83199,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JuliaLang:master","ref":"master","sha":"c321bf847d6c00e25ad3e3fc4dcc24252a1c8e33","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","created_at":"2011-04-21T07:01:50Z","updated_at":"2015-08-29T14:31:02Z","pushed_at":"2015-08-30T00:28:54Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":223731,"stargazers_count":5917,"watchers_count":5917,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1293,"mirror_url":null,"open_issues_count":1346,"forks":1293,"open_issues":1346,"watchers":5917,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12822"},"html":{"href":"https://github.com/JuliaLang/julia/pull/12822"},"issue":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/12822"},"comments":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/12822/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12822/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12822/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaLang/julia/statuses/959eb4cb8ed2a9bfc0fba1e3ea65e8873efa7bb0"}}}}