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

Home » Public Forums » archive » Re: overload init function in class/object ?
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: overload init function in class/object ? [message #34986 is a reply to message #34985] Tue, 06 May 2003 13:14 Go to previous messageGo to previous message
paul wisehart is currently offline  paul wisehart
Messages: 28
Registered: December 2002
Junior Member
On Wed, 7 May 2003 07:55:37 +1200, Mark Hadfield <m.hadfield@niwa.co.nz> wrote:
> You can't overload a function in this way in IDL. When IDL compiles your
> obj__define.pro the second version of obj::init will *replace* the first.
> However IDL allows optional parameters, so the way to handle this in IDL is
> something like

I knew I was missing something!
When you put it that way my mistake(and solution) is obvious (to me).
I still have lingering C++ syntax floating around my brain.

Thanks alot!

(So technically speaking you _cannot_ overload functions in
IDL? You just use optional parameters to get the same effact?)

--
paul \ /
wisehart >/
<//////$>
|\|\|\
[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: sec : U Re: checking for Demo mode
Next Topic: Interpolation from a regular to an irregular grid?

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

Current Time: Sat Oct 11 15:31:07 PDT 2025

Total time taken to generate the page: 1.91912 seconds