section 4.8: Block Structure

pages 84-85

You've probably heard that global variables are ``bad'' because they exist everywhere and it can be hard to keep track of who's using them. In the same way, it can be useful to limit the scope of a local variable to just the bit of the function that uses it, which is exactly what happens if we declare a variable in an inner block.


Read sequentially: prev next up top

This page by Steve Summit // Copyright 1995, 1996 // mail feedback