What does it do?
-
Private Sub donothing(param as Object) End Sub
-
Private Sub donothing(param as Object) End Sub
I must say it is well-self-documented-code! :-D Anyway, IMHO, NULL operations are useful at times. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Private Sub donothing(param as Object) End Sub
bigbrownbeaver wrote:
What does it do
The name of the method itself explains it. :-D
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT. -
Private Sub donothing(param as Object) End Sub
It's an early attempt at a partial method[^].
Deja View - the feeling that you've seen this post before.
-
Private Sub donothing(param as Object) End Sub
I know one better.
void Class::Function() { bool result = true; try { } catch(...) { result = false; } return result; }
Nuclear launch detected
-
I know one better.
void Class::Function() { bool result = true; try { } catch(...) { result = false; } return result; }
Nuclear launch detected
-
I know one better.
void Class::Function() { bool result = true; try { } catch(...) { result = false; } return result; }
Nuclear launch detected
-
Uh..... that code wouldn't even pass the compiler. You can't return a boolean value in a method declared as type "void".
True... the return type was boolean. But I posted the example to see how much code and runtime overhead you need to return true from a function that does nothing.
Nuclear launch detected