Why does the following fail:
while (true)
int a;
if(true)
int a;
if(true)
int a = 5;
if(true)
int a = somestaticfunction();
apperently if fails with: “invalid embedded statement error 88”
on visual studio.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is an good explanation of what is going on, it is part of the language specification. It seems Objective C, Java and C also have the same restrictions. You can work around it by enclosing your statements like so.