Title: wrong translation of x++ operator · Issue #46 · natural/java2python · GitHub
Open Graph Title: wrong translation of x++ operator · Issue #46 · natural/java2python
X Title: wrong translation of x++ operator · Issue #46 · natural/java2python
Description: Here is another one. I don't know if this comes from ANTLR, or is something that could be solved here. The Java code: if (condition): myArr[count++] = index; # .. more code here myArr[count++] = index; is translated to: __count_1 = count...
Open Graph Description: Here is another one. I don't know if this comes from ANTLR, or is something that could be solved here. The Java code: if (condition): myArr[count++] = index; # .. more code here myArr[count++] = in...
X Description: Here is another one. I don't know if this comes from ANTLR, or is something that could be solved here. The Java code: if (condition): myArr[count++] = index; # .. more code here myArr[count++] ...
Opengraph URL: https://github.com/natural/java2python/issues/46
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wrong translation of x++ operator ","articleBody":"Here is another one. I don't know if this comes from ANTLR, or is something that could be solved here.\n\nThe Java code:\n\n``` java\nif (condition):\n myArr[count++] = index;\n # .. more code here\n myArr[count++] = index;\n```\n\nis translated to:\n\n``` python\n__count_1 = count\ncount += 1\n__count_2 = count\ncount += 1\nif condition:\n myArr[__count_1] = index;\n # .. more code here\n myArr[__count_2] = index;\n```\n\nIt should be translated to:\n\n``` python\nif condition:\n myArr[count] = index;\n count += 1\n # .. more code here\n myArr[count] = index;\n count += 1\n```\n\nOtherwise the result is not the same if the additional code between both assignments do change the count variable.\n","author":{"url":"https://github.com/yucer","@type":"Person","name":"yucer"},"datePublished":"2016-09-27T10:07:26Z","url":"https://github.com/natural/java2python/issues/46"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9be19aa5-57e3-71dd-a6c7-1709ffdc4425 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B908:8A4B4:64C11F:8A754C:6AFCBA57 |
| html-safe-nonce | 9f545ce88a4f2e92969a05e78b8ea1f34986c6ff23e62a569a9528f137dce1f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTA4OjhBNEI0OjY0QzExRjo4QTc1NEM6NkFGQ0JBNTciLCJ2aXNpdG9yX2lkIjoiNTkzMTM0MzU4MzA3MzIyNDU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 27f7a8750224fe370cb157635245ef2dc3b6a6f1928c5f51940ff76ff4949f3d |
| hovercard-subject-tag | issue:179450580 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/natural/java2python/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77c4df5f6908feee804ab7f33f433cdc48d059f916ab4dbfac44d0d4604ffdff/natural/java2python/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77c4df5f6908feee804ab7f33f433cdc48d059f916ab4dbfac44d0d4604ffdff/natural/java2python/issues/46 |
| og:image:alt | Here is another one. I don't know if this comes from ANTLR, or is something that could be solved here. The Java code: if (condition): myArr[count++] = index; # .. more code here myArr[count++] = in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yucer |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3084aead77cbcb4f4904fba53851fa1a0546b0dec3619bd250815e72588dc6d |
| turbo-cache-control | no-preview |
| go-import | github.com/natural/java2python git https://github.com/natural/java2python.git |
| octolytics-dimension-user_id | 146692 |
| octolytics-dimension-user_login | natural |
| octolytics-dimension-repository_id | 3298542 |
| octolytics-dimension-repository_nwo | natural/java2python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3298542 |
| octolytics-dimension-repository_network_root_nwo | natural/java2python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5410e4bebd3e45b138c853ecef3992279d86d5af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width