LWN.net Logo

It's not a mistake to ban goto... it's not a mistake to keep it...

It's not a mistake to ban goto... it's not a mistake to keep it...

Posted Feb 10, 2008 13:48 UTC (Sun) by nix (subscriber, #2304)
In reply to: It's not a mistake to ban goto... it's not a mistake to keep it... by filipjoelsson
Parent article: Interview: Mark "Markey" Kretschmann (Not the Gentoo Weekly News)

The Linux kernel uses goto in this manner all the time. It's useful if you 
can't do it by splitting the non-ctor-dtor stuff into a separate function.


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds