[b][red]This message was edited by bilderbikkel at 2006-10-31 7:40:46[/red][/b][hr]
[red]Edit: Fixed code tag[/red]
I found some code in which all global functions were static. IMHO this is strange/unneccesary/redundant.
Does anybody know an advantage/disadvantage of doing this? In my entire book collection I have never found this idiom (except in C# books).
Here is give an example:
static void sayHello() [red]//is the use of 'static' unneccesary and/or redundant?[/red]
std::cout << "Hello" << std::endl;
Thanks for your opinions in advance,