It's a reason, but I don't think it's terribly valid. #if 0 is pretty confusing, especially if your eyes don't catch where the #endif is. It works, but its dirty. Personally, I'd just change that extra /*, what is it anyway, a mouse click and 3 key strokes? :)
david -----Original Message----- From: James Williams [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 2:34 AM To: [EMAIL PROTECTED] Subject: RE: [hlcoders] #if 0 #endif -- isn't a /* */ 'better form'? > Perhaps there's a reason for doing this that escapes me though. If you have /* */s in the cuntion already, the */ will terminate the block function and force you to go back and add more /*s, which is a pain. Take this for example: doBlah(vec1, vec2); /* Commented... doBlah2(vec2, vec3, length); */ doBlah3(length); If you wanted to get rid of this whole block by commenting it out with /* */, VC will interpret the end of the comment at the first */, leaving doBlah3 to possibly wreak havoc. With #if 0, the block is removed by the preprocessor and there's no chance of comments mucking it up. -James "Corvidae" Williams ([EMAIL PROTECTED]) Administrator, Wavelength Forums (http://www.planethalflife.com/wavelength) Co-Leader / Coder, Underhive (http://www.underhive.com) _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

