Normally I write the code as
o constructor
o destructor
o mix of member functions, declarations etc
I recently came across the following coding style
o constructor
o mix of member functions, declarations etc
o destructor
The code is declared like that in both the header and the source. Someone told me that because everything began with T instead of C, it was probably a Borland style. I'm just wondering, is this common? I've never seen this style in any book, at any site or in any distributed code in 20 years of using C++.
What I find annoying about it is someone comes along adds new functions after the destructor instead of before the destructor so the destructor is now in the middle.
The other strange thing I've seen recently is constants in lowercase, variables and structures in uppercase, member variables beginning with any case. Granted there is no standard coding style but this stuff is just so weird it is difficult to follow. I'm working on 12 year old code so this has been going on for some time.
o constructor
o destructor
o mix of member functions, declarations etc
I recently came across the following coding style
o constructor
o mix of member functions, declarations etc
o destructor
The code is declared like that in both the header and the source. Someone told me that because everything began with T instead of C, it was probably a Borland style. I'm just wondering, is this common? I've never seen this style in any book, at any site or in any distributed code in 20 years of using C++.
What I find annoying about it is someone comes along adds new functions after the destructor instead of before the destructor so the destructor is now in the middle.
The other strange thing I've seen recently is constants in lowercase, variables and structures in uppercase, member variables beginning with any case. Granted there is no standard coding style but this stuff is just so weird it is difficult to follow. I'm working on 12 year old code so this has been going on for some time.