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

Home » Public Forums » archive » Re: 2-d histogram and Routines of same name
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: 2-d histogram and Routines of same name [message #70961] Tue, 18 May 2010 14:58 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<55c0cb24-cb7b-4365-8258-c1b21601b133@b21g2000vbh.googlegroups.com>,
Jeremy Bailin <astroconst@gmail.com> wrote:

> On May 18, 1:48�pm, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
>> In article <hsrli1$s0...@speranza.aioe.org>,
>>
>> �mgalloy <mgal...@gmail.com> wrote:
>>> It seems that PRODUCT is a built-in, not .pro code or in a DLM. So I
>>> made my own PRODUCT routine, but couldn't get IDL to ever use it, even
>>> if I manually compiled it. IDL always found the built-in PRODUCT first
>>> and used it. Maybe this was different in older versions of IDL? The docs
>>> say PRODUCT was introduced in IDL 5.6, but I only have access back to
>>> IDL 6.4 where it still seems to be a built-in.
>>
>> For a few built-in IDL routines I have fixed bugs or made
>> minor modifications (routines for which ITT provides the
>> source code). �I keep these in a separate directory and insert that
>> directory into the IDL search path ahead of the default search
>> path.
>>
>> Maybe that won't work for those routines for which ITT does
>> not provide source code (precompiled routines) ?
>>
>> Ken
>
> I'd be very hesitant to knowingly create a function with the same name
> as one that is part of the official distribution, for exactly the
> reasons we're seeing here. When I extend/bugfix ITT routines, I give
> them a slightly different name (usually either prefixed by JB or
> having some suffix that indicates what's been changed, e.g. MEAN_D).

Yes, what you suggest is normally the best approach.

Unfortunately these are functions that are called by other built-in
routines in the iTools library, and I don't have the fortitude to
attempt to duplicate that entire code base, change names, change all
references to the updated functions, etc.

I limit this practice to a handful of routines.

Cheers, Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLWAVE idlwave-surround-by-by-blank
Next Topic: Re: x-y offsets

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

Current Time: Sun Oct 12 16:33:45 PDT 2025

Total time taken to generate the page: 0.00237 seconds