Home Segments Index Top Previous Next

362: Mainline

Global variables are useful as handles for holding on to values as you experiment in a workspace. Their broader use as program elements is discouraged, however. One reason is that the Smalltalk dictionary contains not only the global variables that you define, but also all class names. There is a serious danger of an accidental name conflict if you use many global variables.