Variable declaration reset: Difference between revisions

Content added Content deleted
(→‎{{header|C}}: Added a caveat to comment.)
(→‎{{header|J}}: Clarify summary statement)
Line 231: Line 231:
But it would not alter the generated result.
But it would not alter the generated result.


In other words, J's control words (like '<tt>while.</tt>') do not create new variable scopes.
J's control words (like '<tt>while.</tt>') do not create new variable scopes. However, given J's semantics, its behavior in the context of this task would be unchanged if the while loop introduced a new variable scope.


=={{header|Java}}==
=={{header|Java}}==