comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: FSC_PLOT defaults
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FSC_PLOT defaults [message #74134 is a reply to message #74131] Tue, 21 December 2010 10:53 Go to previous messageGo to previous message
Marc Buie is currently offline  Marc Buie
Messages: 12
Registered: December 2010
Junior Member
Ben writes:

>> Also, it is awkward to use
>> simultaneous instances of things that rely on (the same) global
>> variables.
>
> I'm a little fuzzy on this. How might this occur?

This is a very serious issue, especially if you use any kind of widget programming (doesn't have to be object oriented stuff, either). With widgets you can have multiple copies of the same tool each looking at different data. You can also have different tools running at once. Each of these can run asynchronously and at any time. If you have a set of graphics tools that all depend on a global variable for its behavior (and perhaps modify it) then you are stuck with every tool taking on the same behavior. Sometimes that might be ok but mostly it's not what you want.

For this reason, I never, ever use the global variables to control plots unless it's in a throwaway script. In a program, I always use the graphics keywords to set the behavior. There are ways to make the global variables work for you but you have to be _very_ careful. For me, the price is always too high.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: updating the coyote library
Next Topic: Re: Hodograph plots of wind speed and direction

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 03:31:36 PDT 2025

Total time taken to generate the page: 0.00265 seconds