[Glade-users] globals vs locals... again
- From: james cameron compaq com (James Cameron)
- Subject: [Glade-users] globals vs locals... again
- Date: Wed, 04 Oct 2000 12:58:50 +1100
There's always an opposing view. ;-)
Nothing should be global. Making widget pointers global prevents you
from having multiple instances of a widget realised. It also suggests a
design that violates the principles of modular isolation. It causes
interdependencies that increase the maintenance cost.
Give any example of why one widget's callback needs to know another
widget's pointer, and I will explain how I would code for that in a
modular fashion without using global widget pointers.
--
James Cameron (cameron stl dec com)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]