John Sampson wrote:
> Hello -
>
> I had a syntax error message about a semi-colon. I tracked the cause
> down to not
> following the word "while" with the word "do" - a long way from the line the
> error message was telling me was wrong. Don't ask me what this has to do
> with a semi-colon.
Ah, errors, there are some many of them and so many ways to get them!
The [do] clause is optional. It is perfectly legal to do something
like:
while f(read())
So there isn't isn't really due to the missing 'do', but something
following the while is confusing the automatic semi-colon insertion
code. (It's easily confused, poor thing.) That's what makes error
messaging so hard - there are 'likely' reasons for an error and then
the 'real' reason - and sometimes fixing a likely problem can fix
the real problem - but sometimes not.
If you can share the next few lines following the while, maybe I
(or someone more into syntax rules!) can more precisely explain
what the real error was.
--
Steve Wampler {[email protected]}
The gods that smiled upon your birth are laughing now. -- fortune cookie
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group