c4
c4 copied to clipboard
Bad local declaration
I get the error when use the following declaration:
int a = 5;
but the following code works without errors
int a;
a = 5;
The parser is designed for simplicity and ease of understanding. It simply does not support declaring and assigning variables in the same line. I like to think that extending the capabilities is left up to the reader as a way of exploring the program.