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

Home » Public Forums » archive » Re: overriding system functions.
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: overriding system functions. [message #43833 is a reply to message #43828] Thu, 28 April 2005 11:16 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Thu, 28 Apr 2005 jlamm2223443@yahoo.com wrote:
> I would love it to have my own preloaded max function that checks
> if the input is indeed an array and then if it is call the max
> function or otherwise post an error message and bomb.

You could tell your students to always check for the existence of a
"jlamm_X" function. If they want "max", they should try
IDL> .com jlamm_max
If there is an error message, use max(), if the compilation works,
use jlamm_max().

You can override any code that is written in IDL. You might be able
to do this by appending your library location to the beginning of
!PATH. I do it by explicitly compiling my own over-ridden routines
(map_set, write_gif, write_mpeg, etc.) in my IDL_STARTUP file.

-k.
[Message index]
 
Read Message
Read Message
Previous Topic: idlwave in XEmacs
Next Topic: Re: Plot Clipping Problems

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

Current Time: Thu Oct 09 22:56:16 PDT 2025

Total time taken to generate the page: 0.56343 seconds