Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:why? (Score 1) 677

I use a standard for coding in C that *requires* the use of goto. It goes like this:

#define CHECK(fnc) { int __r = (fnc); if (__r) goto CLEANUP; }

Then define each function to have a CLEANUP: label, and surround the call of every function from within this function by CHECK(). The CLEANUP label usually has a return 0; just before it, and in most cases a return nonzero; after it. Gives you clean code that always eats up the stack in case of error.

Comment Re:Open source code is open for everyone (Score 1) 211

Not necessarily: to come to this point, you need two things: development quality, and auditing quality. The first to create, the second to discover, the bugs. The second is what you get plenty of, in the open source world, presumably. But you assume that an open source developer is just as good as a closed source developer. That might not necessarily be true.

Slashdot Top Deals

It's a naive, domestic operating system without any breeding, but I think you'll be amused by its presumption.

Working...