The one definition rule of c++ is something I learnt and forgot several times, but it makes an interesting read every time!!
More links
The One-Definition Rule
Also see Weaving a Way Past the C++ One Definition Rule
Subscribe to:
Post Comments (Atom)
Ranking and Unranking permutations
I've been a big fan of Skiena's Algorithm Design Manual , I recently found my first edition of the book (although I own the third ed...
-
(Photo from http://content-usa.cricinfo.com/indvaus2008/content/current/player/28114.html) Dravid's dismal form continues in test crick...
-
I've been reading up on Fast Fourier Transform (FFT) from several books on algorithms that I have, TCLR, Tamassia, Sahni, Numerical Rec...
-
The book is almost out there . There is code and selected solutions as well. The book is supposed to be in full colour from what I heard....
3 comments:
Pardon me but I am thinking why one would define an entity such as a class more than once, unless by mistake or perhaps when including two libraries where there is a name clash. Java embeds a convenient namespace mechanism in definition of class itself so duplicate definitions are caught at the file system or at compile time. And declaration and definition are the same in Java.
The definition could be in a header, which in turn could be included by multiple c++ source files.
Java's convention is good and smart, but it is also kind of limiting and painful at times. I also kind of like their directory parsing
a.b.c.d
for a/b/c/d
Post a Comment