Not The Kind With Sand

Posted by Jason Terk on Monday, January 12

The (almost) always entertaining Daily WTF has an article today about my favorite pair of standard C functions, setjmp and longjmp:

If goto is considered harmful, then longjmp() should definitely be considered dangerous. As in, thermo-freakin-nuclear bomb dangerous. Fortunately, its complexity and frequency of use seem to be on par with that of a nuke, and most C developers have not brought it in their everyday. Most.

Have Your Say

Name:
Email:

* do fancy stuff in your comment.