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

Home » Public Forums » archive » Re: PV-WAVE widgets
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: PV-WAVE widgets & Common blocks [message #698 is a reply to message #607] Fri, 08 January 1993 02:08 Go to previous messageGo to previous message
atmnjl is currently offline  atmnjl
Messages: 5
Registered: January 1993
Junior Member
In article <1993Jan7.090739.826@ualr.edu>, lindstrom@acs.harding.edu writes:
> In article <1993Jan6.175820.21889@new[Cs2.cis.umn.edu>,
> patel@sparky.drad.umn.edu (8-)) writes:
>
>> Only thing I dislike is passing the parametes by common block.
>> The program look like FORTRAN programs and I hate the common blocks.
>> I was wondering if PV-WAVE can come up with something like a global
>> declarations. This might ease a bit the parameter passing and
>> make it easy to add/delete parameters to be passed.
>
> Amen, brother. We are writing data analysis code which is
> currently ~5000 lines with LOTS os subroutines. There are
> some routines that contain 10 lines or more of common blocks!
> Global variables would greatly reduce at least this aspect of
> the code.

You could keep all your 'global' variables in a structure or two and declare
them in the common block. Using structures to group related variables together
is good practice anyway. I tend to keep all the varaibles dealing with a set
of widgets and their contents etc in one structure.

Someone suggested another method in this newsgroup a month or two ago, whereby
you can use the UVALUE for the widgets to pass information around. This was
for IDL, but I imagine it would work for PV-Wave.

Nathaniel Livesey
Dept. of Atmospheric Physics
Oxford.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Summer Undergraduate Research in Computer Vision
Next Topic: IDL, PV-Wave, Matlab, Khoros

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

Current Time: Sat Nov 29 10:29:16 PST 2025

Total time taken to generate the page: 0.08453 seconds