Thread: [C++] Challenge
View Single Post
Old 01-21-2004, 03:23 PM   #8 (permalink)
KnifeMissile
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Quote:
Originally posted by n0nsensical
I don't know if it's in the C++ Standard but as far as I know the & before function names is simply optional, not illegal. Same for using the * operator to call a function through a pointer. I just copied and pasted in the code and the tabs went with it.
It is optional and not illegal, hence my comment on how it's a hack. I can't help but feel that one is more consistent than the other, sort of like this situation:
Code:
const int foo;
int const bar;
Both lines of code do exactly the same thing but bar is more consistent than foo, so I use it despite the popularity of foo's style...
KnifeMissile is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46