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 #34980 is a reply to message #34976] Tue, 06 May 2003 13:38 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield (m.hadfield@niwa.co.nz) writes:

> Not to someone who's used to C++. In that language you can have several
> versions of the same function, differing only in the number (and/or type?)
> of their arguments. The compiler examines the argument list at each place in
> the code where the function is called and dispatches the call to the
> appropriate version. Because the decision is made at compile time (C++ being
> a statically typed language) it is more efficient than doing run-time checks
> inside the function in the IDL manner. But less flexible.

OK, I had "learn C++" on my to-do list, but I've
taken it off. I'm joining up with the object Luddites
if that's the kind of nonsense I have to learn! :-(

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[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: Tue Dec 02 03:45:29 PST 2025

Total time taken to generate the page: 1.99680 seconds