>For instance, if I have a function named F1(), and its return
>value is the return value from function F2():
>
>bool F1()
>{
>    // do some stuff
>   return F2();
>}
>
>How should that be documented?

*** Personal opinion disclaimer ***

I think it very much depends on the situation - in this case, how F2 is
named. If it's got a more meaningful name than just "F2" <grin> then in
theory, it shouldn't need a comment - it should be obvious.

I feel that you should only comment what something does if it's not
immediately obvious, like why you have a for loop that starts at 1 rather
than 0, or something subtle like that. Similarly, you should only document
parameters to or from a method if their use requires some special
consideration beyond the obvious name of the parameter.

Thus, in your case I'd say you really don't need it - unless you want to say
why you bothered to put a wrapper around another function that does nothing
except pass it on {:v)

--
Jason Teagle
[EMAIL PROTECTED]



_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to