Re: warning: (all(part1))(part2) = part2*0. [message #11881] |
Thu, 04 June 1998 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
R. Bauer (r.bauer@fz-juelich.de) writes:
> all = findgen(100)
> part1 = findgen(10)
> part2 = findgen(3)
> print,(all(part1))(part2)
> 0.00000 1.00000 2.00000
> This will gave an error like:
>
> % Temporary variables are still checked out - cleaning up...
And Stein Vidar thought *I* was writing strange code! :-)
Cheers,
David
P.S. I think we should have a contest to see who can write
the lousiest IDL code. (Or the code which most resembles
C code, which often amounts to the same thing.) Bonus points if
the user can't figure out *what* it is suppose to do!
Nah, it would be too easy for some of us old farts to win. :-)
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|