RE: [OT]Strange problem with VC++ compiler because of goto

> ----------

From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Edouard A.[SMTP:xxxxx@fausse.info]
Reply To: Windows System Software Devs Interest List
Sent: Thursday, May 17, 2007 9:54 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] [OT]Strange problem with VC++ compiler because of goto

But granted in pure C there are times were gotos are… no I cannot say it.

Why not? Goto is just a tool which can be used correctly or not. It is easier to misuse it than other available tools. Personally, I prefer __try/__finally/__leave but it can’t be used portable code. Or do{}while(FALSE) and breaks but it is one level only which isn’t always sufficient. Anyway, everything is better than embedded returns and especially returns covered within macros. As you can see, it is matter of taste.

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]