|minimal nested block for declarations email@example.com (Derek M Jones) (2003-10-31)|
|Re: minimal nested block for declarations Jeffrey.Kenton@comcast.net (Jeff Kenton) (2003-11-21)|
|From:||Derek M Jones <firstname.lastname@example.org>|
|Date:||31 Oct 2003 22:43:39 -0500|
|Keywords:||syntax, design, question|
|Posted-Date:||31 Oct 2003 22:43:38 EST|
In C (and other languages) most local declarations appear in the
outermost block of the body of the function definition.
Does anybody know of any studies that have analysed source to
investigate the extent to which different declarations can be moved
into some nested block?
For instance, in:
/* only references to a appear in this block */
analysis would report that the declaration of a could
be moved to a nested block.
Return to the
Search the comp.compilers archives again.