>Bresticker, Shalom wrote: >> I'll ask a reverse question. >> >> Is it legal to assign a value to the function variable within a >> void function? > >No. > >> If so, what is the variable's type? > >> Is it legal to hierarchically access the function variable of a void >> function? > >No. > >> Is it legal to have a return statement with a value within a void function? > >No. > > >The LRM isn't clear of course, but since one can't declare a variable >of type "void" it would be a huge stretch to think that the answer >to any of these questions would be "yes". I agree with all of Gord's answers and reasoning. This effectively means that there is no such function variable within a void function. Thus there is no need to have that name pre-declared in the function. It could still be done, in an attempt to be consistent with non-void functions. I don't see the point, since the name is there for the variable. If the void functions differ in not having the variable, having them differ also in not having the name is more regular. Steven Sharp sharp@cadence.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Jan 15 10:37:59 2008
This archive was generated by hypermail 2.1.8 : Tue Jan 15 2008 - 10:39:37 PST