Someone please... save me before I choke!  Please say it isn't so!!
Tonight I really started to build a serious heavy-duty Win32::GUI
application, and I immediately hit a wall:

Is it really not possible to (usefully) program in Win32::GUI while under
"use strict"?!?  I say this because there appears to be **nothing** passed
to the event-handling subroutines - not even a reference to the widget
itself!  This, IMHO, is absolutely insane!  That means that all of my
widget refs, and every variable that is required in the event-handling
subroutines, have to be global variables...  which would make comp-sci
professors roll over in their future graves... a "good" program should
never need to have a *single* global variable, let alone *every* variable
being global.  If even the widget ref was sent to the event-handler I could
attach the subroutine's required variables to its hash, but as things are
it seems to break every rule I know about "good" programming style.

I must be missing something... Please, someone, tell me that it doesn't
really work this way...

Mark



Reply via email to