New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assignment to array in definition #728
Comments
|
Could you open a pull request? |
|
I made it require a semicolon if it was defined with a number. CBot doesn't count the elements during compilation, I just found another issue. { {123,234,111} {223,454,342} } |
|
Does this need a new issue? These should not compile These don't compile: and as in the comment above: missing comma crashes the game There's more but, it's a long list already. I have all of it fixed, if you like. It was mostly broken syntax checking. |
|
I was gonna mention that I had to do alot of little edits I also have a clean fix for issue 30(Title), i did a few days ago. |
|
After testing these changes in depth, i can say that it fixes several issues. |
|
It would be best if you could make a PR because that makes reviewing and discussing changes a lot easier. |
|
Ok, the fix for "31, 312" is small and stands on it's own, i'll do it separately. |
|
Shall I go ahead with the PR on this? (fix for "31 and 312" not yet included, but I can add it) |
|
If you want to contribute to the project and have done something, then just open a pull request without asking anyone. It's their purpose. The worst that could happen is that we'll just close your PR without merging. It's just a lot easier to review and discuss changes in PR. |
|
It's the same testing with 0.1.6 and localrepo but i get failed assert, I haven't tested dev yet, int q[] = {x}; // works
int p[] = {1, y}; // works
int i[] = {1, 2, z}; // worksI thought it was working but now i'm not sure. It only hangs for me if i comment out the assert(); The problem seems to be in the execution part, and calling the baseclass method. I also found another hangover from 0.1.6 and probably before that. int i[3] = {1,2,3};
// i[0] = i[0] + 1; // it works if you do this first
i[0] += 1; // compiler throws "variable not initialized" ??
++i[0]; // works
i[0]++; // worksThe same goes for other compound operators |
Fix some bugs in CBOT This fixes #728 (comment) and #626
|
Fixed in #793 |
From issue #624:
From issue #698:
The text was updated successfully, but these errors were encountered: