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

Home » Public Forums » archive » syntax for calling parent class _overloadPlus method
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
syntax for calling parent class _overloadPlus method [message #93105] Thu, 28 April 2016 06:01 Go to previous message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
i'm trying to overload operators for my subclass of idl_variable, but
don't find the correct syntax for calling the parent classes' operator
function.

How do i have to correct the line below marked ';problem' without using
'left+right'?
i guess i have to put something like XXX.idl_variable::_overload...
but what would then be XXX?

---
pro sandbox__define
struct={sandbox, $
inherits idl_variable, $
reps: ptr_new() $
}
end

function sandbox::Init, array, reps
; a bit of code
void=self.idl_variable::init()
void=self.idl_variable::set_value(array)
*self.reps=reps
return, 1
end

function sandbox::_overloadPlus, left, right
; some code
out=idl_variable::_overloadPlus(left,right) ;problem
; some more code
return, out
end
---

PS: Sorry, stupid question of a beginner, but i failed to find the
solution elsewhere.
PPS: There may be more errors, but the rest at least compiles.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Very basic IDL vector question
Next Topic: Wrong documentation for BitGet()?

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

Current Time: Wed Oct 08 14:08:01 PDT 2025

Total time taken to generate the page: 0.00216 seconds