Re: overload init function in class/object ? [message #34975 is a reply to message #34974] |
Tue, 06 May 2003 14:29   |
James Kuyper
Messages: 425 Registered: March 2000
|
Senior Member |
|
|
paul wisehart wrote:
>
> On Tue, 6 May 2003 13:48:22 -0600, David Fanning <david@dfanning.com> wrote:
>> paul wisehart (wisehart@runbox.com) writes:
>> I think it is your definition of "overload" that
>> is probably doing you in. :-)
>>
>> I'm not sure what you mean by it, but it sure doesn't
>> mean "define the same thing twice, in two different ways".
> In C++ thats exectly what it means :)
Well, not precisely. In C++, overloading means defining two different
things with the same exact name, in possibly different ways, and letting
the compiler decide which one to use, based upon the number and types of
the arguments. Given the different way that IDL handles data types, and
the different way it handles default arguments, it's neither feasible
nor necessary to use C++ type overloading in IDL.
|
|
|