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

Home » Public Forums » archive » IDL 8 Operator Overloading and Error Tracking
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL 8 Operator Overloading and Error Tracking [message #74159] Sat, 18 December 2010 20:04
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
I haven't used IDL 8 but am wondering if the operator overloading
would support automatic tracking via hidden variables. Could a class
(is that the right term?) be written so the following code is
supported?

x = randomu(seed, 10 )
y = randomu(seed, 10 )
z = x + y
plot, z

;; and then, due to operator overloading:
plot, z.err
;; or
print, !z.err
;; or
print, z_err

Where errors are initially tracked as per a standard (or customizable)
function for +-/*^e and log() operators, and supports extensions or
hooks to add support for additional functions (system, and user) such
as "z = smooth(x,3)" and "my_pro, x^2, z"

This would be a nice feature.
[Message index]
 
Read Message
Previous Topic: Re: spawning Fortran executables
Next Topic: Re: IDL 8 Operator Overloading and Error Tracking

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

Current Time: Fri Oct 10 06:59:46 PDT 2025

Total time taken to generate the page: 0.48233 seconds