News for hackers. Stuff that matters.
Re:Learn C The Hard Way by palish on Saturday July 02, 2011 @10:59PM (#2722948)
Identifiers with leading underscores? I use those for member variables... (this makes more sense in C++ without the arrow notation.)
Re:Learn C The Hard Way by __rkaup__ on Sunday July 03, 2011 @12:29AM (#2723078)
Maybe he's referring to how identifiers with leading underscores followed by a capital letter are reserved in C++ (I'm not sure if they are in C)...
Re:Learn C The Hard Way by palish on Sunday July 03, 2011 @01:43AM (#2723171)
Oho. Followed by a capital letter? Interesting.

I always thought that "all identifiers with a leading underscore were reserved". I just consciously ignored it, and have never had a problem in years. But I was also always using member variable names like "_children", "_childCount", etc, not "_Children".

Re:Learn C The Hard Way by __rkaup__ on Sunday July 03, 2011 @02:30AM (#2723226)
In fact, here's a reference: http://msdn.microsoft.com/en-us/library/e7f8y25b(v=vs.80).as... (It's in a "Microsoft Specific" block but says it's part of the ANSI C standard.) It applies to C, and it also applies to identifiers staring with two underscores.
Re:Learn C The Hard Way by spc476 on Sunday July 03, 2011 @01:16AM (#2723132)
The C Standard reserves identifiers starting with a leading underscore for the system implementation (C standard library, Posix libraries, etc). They aren't meant for use by user code (or rather, you can use them, but they might conflict with system defined identifiers).