[PLUG] Re: 'goto' in C code

Kevin Falcone on 2000年7月28日 23:15:58 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Re: 'goto' in C code


>>>>> "WM" == Walt Mankowski <waltman@netaxs.com> writes:
 WM> On Fri, Jul 28, 2000 at 07:24:02PM -0400, Earl J. Morris wrote:
 >> [...] However, if used with care, it can make the code very
 >> efficient. [...]
 WM> Grep for "goto" sometime through the Linux source tree. If
 WM> Linus uses them, they can't be all bad, right?
Like Earl said, it can make code efficient. In a kernel, if you are
in the wrong place, you want to get the heck out of there in a hurry.
However, if you can, you're probably better off using setjmp/longjmp
instead of goto. 
-kevin
-- 
the purpose of a windowing system is to put some amusing fluff around
your one almighty emacs window.
Mark Kromer in <36FC3101.37FB9797@mynode.com>
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug



AltStyle によって変換されたページ (->オリジナル) /