IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on December 11, 2005, 02:20:08 PM

Title: 'break' invalid context
Post by: Parker on December 11, 2005, 02:20:08 PM
I have the following block of code:
while (true)
{
ch = GetChar();
if (ch = "]")
{
ch = GetChar();
if (ch = "'") break;
}
else if (ch = 0)
{
return TKERROR;
}
}

On the line if (ch = "'") break;
I get an invalid context error where it should be breaking out of the while loop.
Title: Re: 'break' invalid context
Post by: Ionic Wind Support Team on December 11, 2005, 02:36:47 PM
'break' has limited use at the moment.  It's context based and doesn't weave itself backwards to find the correct context yet.  It is on my 'get back to it' list.  Which is the list I have when something gets frustrating ;)

Paul.