We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current behavior: Reinitializing strings does not work.
Expected behavior: Reassigning a variable with new string(100) should empty the string.
new string(100)
Related code:
every 100 milliseconds { var s = new string(100); s += "a"; s = new string(100); s += "b"; }
produces
char s_buf[103] = {0}; char *s = s_buf; char mainHandleEvery100Millisecond12S_2_buf[] = "a"; strcat(s, mainHandleEvery100Millisecond12S_2_buf); ; // here the reinitialization should happen char mainHandleEvery100Millisecond12S_5_buf[] = "b"; strcat(s, mainHandleEvery100Millisecond12S_5_buf);
Other information: Might be fixed by the new type system
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current behavior:
Reinitializing strings does not work.
Expected behavior:
Reassigning a variable with
new string(100)
should empty the string.Related code:
produces
Other information:
Might be fixed by the new type system
The text was updated successfully, but these errors were encountered: