Main Content

Global and Enable - two misused words!

Archive - Originally posted on "The Horse's Mouth" - 2009-11-30 18:07:14 - Graham Ellis

The word global is used in declaring variables in some languages such as Tcl and Python to indicate that the variable being referred to is shared with the variable of the same name at the top scope. To use the word global, which implies that the declaration makes the variable visible everywhere, is misleading

The word enable is used in places such as the Apache http server build process to request that a facility is included within the build. But it does not mean that the facility is actually switched on and usable when the build has been done - other quite separate configuration work is needed to truly enable it!

I have some sympathy with the people who have to come up with words to describe what these words actually do - I'm not sure if I would have done any better; I do know that I have to be very careful when explaining "Global" and "Enable" on our courses.