Re: XForms: Global data

Rob Fletcher (rpf1@york.ac.uk)
Fri, 13 Mar 1998 13:00:21 +0000 (GMT)

# To subscribers of the xforms list from Rob Fletcher <rpf1@york.ac.uk> :

On Fri, 13 Mar 1998, Tano Fotang wrote:

> # To subscribers of the xforms list from Tano Fotang <M.Tano@FH-Wolfenbuettel.DE> :
>
> In reply to Chris <deyz@hiphop.tbp.mb.ca>:
>
> You mustnt use global variables if u take the pain to avoid them.
> Teh question of using them doesnt, in my humble apps, even arise:
> one can do almost evrything with u_[vl]data, IMO the most useful
> variables/struct-members in the forms library. The most difficult
> part is the book keeping: what has been attached to which u_[lv]data
> and what for? You can easily get lost. Maybe i look at it the wrong
> way..

I agree. If you are careful with the housekeeping, there's no problem.

Maybe some "helper functions" could be written to help with this
housekeeping. SUIT (rip) did this with it's "properties". Basically
name-value pairs were "hung" off GUI objects. I talked to TC about
this years ago - I may get round to doing this ... (I still have the
message and ideas from you TC!!).

I suspect that for newcomers, who are probably only getting started
with pointers can find the task of managing pointer chains a bit
daunting, if not confusing, and so do not, and opt for nasty global
variables!

Regards, Rob
+===========================+=======================================+
| Dr R P Fletcher (Rob) | Email R.Fletcher@york.ac.uk |
| Graphics Coordinator | Phone +44 1904 433816 (ddi) |
| Computing Service | Frontdesk +44 1904 433800 (ddi) |
| University of York | Fax +44 1904 433740 |
| YORK YO1 5DD, UK | DU Moo Rob_F |
| www.york.ac.uk/~rpf1/ or www.geocities.com/SiliconValley/Bay/8428/|
| The RobCam: www.york.ac.uk/~rpf1/robcam.html |
+===================================================================+

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/