-
Anybody notice the newbie error in the Apple Goto Fail saga?
Or lazy oldbie, perhaps?
if (some condition)
goto fail;
goto fail;
If he she had used the proper curly brackets, instead of the feature of many compilers to allow them to be assumed with a one line statement following the test...
if (some condition)
{
goto fail;
goto fail;
goto fail;
goto ad nauseum;
}
...even the above would not have failed and the world wouldn't be pointing fingers and laughing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|