George Greer wrote: > >Oh, why? What's wrong with global variables in your opinion? > >Not that I'm encouraging anything, but I'm interested in knowing why. > Probably nothing more than it being beaten into me by a professor in college. As I said, I tend to use them but cringe everytime I do. Actually, variable such as the various bufs is an acceptable use for globals if you ask me. The globals I tend to frown upon are ones that actually store values that need to be kept. It is too easy to overwrite them accidentally. Especially if more than one coder is involved. -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST