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

Home » Public Forums » archive » Re: Workaround for "Program unit has too many local variables"?
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: Workaround for "Program unit has too many local variables"? [message #7283] Wed, 23 October 1996 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Charlie Zender <zender@ncar.ucar.edu> writes:

> IDL 3.6 will not compile a procedure that has grown rather large.
> the error message is:
> "Program unit has too many local variables"
> is there a workaround to this which does not involve rewriting
> the procedure? e.g., is there a system variable i can set to
> increase the # of local variables allowed?

There is no system variable that can be set to increase the
number of local variables allowed in IDL.

But it would be a strange program indeed that couldn't be
made more modular (and probably improved) by splitting
functionality off into utility procedures and functions.

Besides, doing this will get you in shape for writing
good widget programs, where small modules with
specific tasks lend themselves to programs that are
easy to extend and maintain.

BTW, I'm told that many of these kind of limitations
will go away in the next version of IDL, due out in 1997.

David

--
David Fanning, Ph.D.
Phone: 970-221-0438
Fax: 970-221-4728
E-Mail: davidf@fortnet.org
[Message index]
 
Read Message
Read Message
Previous Topic: Re: 2D FFt
Next Topic: Wanted: optical ray tracing

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

Current Time: Sat Oct 11 03:14:37 PDT 2025

Total time taken to generate the page: 1.52038 seconds