March 2, 2009

BCB Peek-A-Boo!

We all know what happens if you let an infinite number of monkeys write stuff on an infinite number of typewriters... But what if you only use a few monkeys and let them write code instead? Well...

So, what is the best way to determine whether a header file belongs to a source file? Comparing filenames? Too obvious! Using the file explicitly named in the project file? Too reliable! No, let's rely on undocumented and arbitrary naming conventions of the #include guard!

No comments:

Post a Comment

Mind leaving your personal allergic reaction?