Re: Aaaahhhhaaayyyahhhh! [message #42748] |
Sat, 26 February 2005 02:00  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
David,
this is one of the ten items we should never do.
1. DON'T USE !ORDER=1
2. Make DAMN sure what you pass to WHERE is a scalar and not an array.
ASSUME NOTHING!!!!
....
While watching the google archive I recognized you have about 9.480 postings
till now sent to this newsgroup. What did you do by reaching 10.000?
cheers
Reimar
David Fanning wrote:
> Folks,
>
> There are days (almost always when there are tight deadlines
> on multiple projects) when you just don't need it!
>
> I just spent five hours over two days (and woke up several
> times last night thinking about it) chasing a most perplexing
> bug, only to discover my favorite gotcha at the other end:
>
> Memo to Self: Make DAMN sure what you pass to WHERE
> is a scalar and not an array. ASSUME NOTHING!!!!
>
> Who would have thought this:
>
> name = OBJ_CLASS (classname, /Superclass)
>
> would return a 1-element array!? Good thing I've lost
> the key to the ammo case. :-(
>
> Cheers,
>
> David
>
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
|
|
|
Re: Aaaahhhhaaayyyahhhh! [message #42947 is a reply to message #42748] |
Sat, 26 February 2005 05:46  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Reimar Bauer writes:
> While watching the google archive I recognized you have about 9.480 postings
> till now sent to this newsgroup. What did you do by reaching 10.000?
Oh, my God, it's embarrassing. And I see that only a third
of them have any kind of IDL content. :-(
I think when I hit 10,000 I'll have a big retirement party. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|