News for hackers. Stuff that matters.
Re:Apple's Module proposal to replace headers for C-based la... by sigil on Monday November 26, 2012 @12:41PM (#4832934)
Instead of "#ifndef _SOME_HOPEFULLY_UNIQUE_NAME_H" I've started using "#pragma once" -- it's likely supported by every compiler you care about.

http://en.wikipedia.org/wiki/Pragma_once

Re:Apple's Module proposal to replace headers for C-based la... by zb on Tuesday November 27, 2012 @03:53AM (#4836288)
That can cause problems if a header is accessible by two different paths (which is not uncommon in a large project). Using both gives you maximum efficiency without sacrificing correctness, and it works everywhere.
Re:Apple's Module proposal to replace headers for C-based la... by nkurz on Monday November 26, 2012 @02:11PM (#4833400)
Thanks, I wasn't aware that it was that well supported. Reading more about this, I also learned that GCC supports the Obj-C once only #import in C and C++ as well.