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

Home » Public Forums » archive » 236 Local Variables? Arrrgggghhhh!!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
236 Local Variables? Arrrgggghhhh!! [message #4710] Fri, 21 July 1995 00:00
cavanaug is currently offline  cavanaug
Messages: 18
Registered: December 1994
Junior Member
In article <DC1IFL.K1v@ireq.hydro.qc.ca>, brooker@toka.ireq-ccfm.hydro.qc.ca writes :
> Help!!
>
> I have a data analysis procedure that is up to 679 lines and when I try to add
> some new code to it I get the error
> "program unit has too many local variables"
>
> I then delete the new code and rerun the program. Just before the end I placed a
> STOP statement. After typing HELP I see that I have 236 local variables.
>
> I take it then that the limit for local variables is slighly bigger than 236?
>
> Has anybody else had this problem? How do you delete variables that you no
> longer need in a procedure?
>
> thanks-Peter Brooker


Good God, man!! A 679 line procedure with 236 local variables!?!?! My advice to you
is to thoroughly read a software engineering book. What you have done is sacreligious. Did
you write this code, or inherit it from someone named B. L. Zebub? Please, for my sake,
break your routine into smaller ones, and, if you're not already, use structures to logically
group some of the local variables. Please do this, for I won't be able to sleep knowing that
there exists code with 2.88 (679 / 236) local variables per line. Thank you.

Charles
--
Charles Cavanaugh | "Words are very unnecessary, they can only do harm"
cavanaug@ncar.ucar.edu | - Depeche Mode
NCAR Boulder, CO, USA | "Facts all come with points of view"
My opinions | - Talking Heads
[Message index]
 
Read Message
Previous Topic: Re: Aaarrrgggghhh!!
Next Topic: IDL-Based Image Processing Position

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

Current Time: Sun Oct 12 13:43:30 PDT 2025

Total time taken to generate the page: 0.88274 seconds