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

Home » Public Forums » archive » Common or not common
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Common or not common [message #10281] Fri, 14 November 1997 00:00 Go to previous message
morisset is currently offline  morisset
Messages: 17
Registered: October 1997
Junior Member
Helo,

I read already lot of times David (and others) speaking
about "never use common" (except to save values used in multiple
call of the _same_ routine). I cannot understand how I could
develop my codes without any common. I have a lot of routines
that have to deal with a lot of variables (of various type).

I can't imagine passing 25 or more parameters to the routines.
And with the previous version of IDL, the parameters where
limited in number.

And what happens when I decide to add one other parameter to
one routine? I have to check all the call to the routine
to be sure that the new parameter is passed
(I can't wait for IDL to do it itself ;-) ?

I use parameters when I want to deal with procedure or
function I want to apply to different variables. But when
in every routines/functions of the program
the spectrum, lambdas, corrections of
different types and a lot of other things,
have always the same name, it's easier and safer
to pass them via a common, no?

Can somebody explain me what I miss?

C. Morisset, IAG/USP, Brasil
http://www.iagusp.usp.br/~morisset/idl

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FFT-bug???? (PV-Wave)
Next Topic: Use of IDL for Wound Care imaging

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

Current Time: Fri Oct 10 22:41:28 PDT 2025

Total time taken to generate the page: 1.92140 seconds