Content deleted Content added
m I have linked the article on lexical structure |
m Reverted 1 edit by Indian reader (talk) to last revision by TucanHolmes (TW) |
||
Line 3:
{{Programming paradigms}}
In [[computer programming]], a '''block''' or '''code block''' is a
The function of blocks in programming is to enable groups of statements to be treated as if they were one statement, and to narrow the [[lexical scope]] of objects such as variables, procedures and functions declared in a block so that they do not conflict with those having the same name used elsewhere. In a block-structured programming language, the objects named in outer blocks are visible inside inner blocks, unless they are [[Name masking|masked]] by an object declared with the same name.
|