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

Home » Public Forums » archive » Naive pointer question ?
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: Naive pointer question ? [message #29005 is a reply to message #28944] Thu, 24 January 2002 07:30 Go to previous messageGo to previous message
David Burridge is currently offline  David Burridge
Messages: 33
Registered: January 1998
Member
Hi Paul et al.

> <BIG snip>
> p.s. Common blocks are not evil. They are unfairly maligned (and
misaligned) but should be used
> judiciously.... just like GOTOs.


Sorry, I couldn't resist this!!! The problem with common blocks two-fold,
both relating to their global scope (ie: the reason for using them in the
first place). First, if you have two programs running in an IDL session
(e.g. a pair of widget programs) which both use the same common block, each
will corrupt the others data. In fact, you might even just be using two
routines that don't realise another is accessing the common block. Secondly,
you cannot trace the changes in a common block, so debugging becomes a
nightmare. This is even worse in IDL when variables can change TYPE as well
as value.

That's it. Rant over:-) Let's just say, I gave them up a LONG time ago!-)

Cheers,

Dave
[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
Previous Topic: Re: TVCRS and Widgets
Next Topic: Re: Question again :)

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

Current Time: Wed Oct 08 19:15:51 PDT 2025

Total time taken to generate the page: 0.00595 seconds