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

Home » Public Forums » archive » Re: IDL 8.0 now available
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: IDL 8.0 now available [message #72008 is a reply to message #71960] Fri, 30 July 2010 07:15 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
mgalloy wrote:
> On 7/26/10 10:50 AM, mgalloy wrote:
>
> Operator overloading:
>
> http://michaelgalloy.com/2010/07/27/idl-8-0-operator-overloa ding.html

Very cool.

I do wonder why the overloading syntax is implemented like so:
function mgffhdf5file::_overloadBracketsRightSide, ....
rather than something like
function mgffhdf5file::_overload[], ....
?

Is there a BracketsLeftSide overload option? If so, that could have been
function mgffhdf5file::_overload[]=, ....

Similarly for the usual operators. Why
function myclass::_overloadPlus, left, right
instead of
function myclass::_overload+, left, right
?

(and, yes, I am thinking of the ruby way).

Given the fact that there is an "_overload" prefix, I would've thought it easy to correctly parse everything between
that and the next "," to correctly interpret the operator or operation to be overloaded.

BTW, does IDL 8.0 have the ability to create user defined operators?

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Draw Widget Object Graphics Scrolling, Confused
Next Topic: Re: sharing information across widget hierarchies

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

Current Time: Fri Oct 10 20:41:47 PDT 2025

Total time taken to generate the page: 1.43716 seconds