Re: Issue of the week
Carl R. White wrote:
>Hawke, it seems you snipped/missed the bit where I
>was arguing that overloading can be a bad idea...
no.... i did understand that part... twas 'bout the only
part... heh.
>And, with the Ada code I was overloading, not redefining.
>One is not the other. Gotta be careful with these things... :)
_sigh_... still not sure i get that part tho...
i've managed to catch that overloading refers to operators
while redefining refers to functions... right?
the examples with date and power, being redefining, i can
see the benefits and uses.
the overloading... different story...
one word: WHY?
why on this green planet would you wanna overload?
the only example i can think of, where overloading might
be actually good (as opposed to C/C++ with it's utterly
stupid (imo) overloading, that isn't really needed anyway)
is perhaps an operator like AND. we could overload it
to perform shortcircuit AND'ing. this i could visualize.
>> you are simply... evil!... dare i say downright _mean_???
>> ;>
>On the other hand the smiley at the bottom could just mean you're
>"'avin a larf", I bit, and you're now reeling me in :)
the simley only referred to the line above where i'm callin'
ya a big meanie! ;)
the part above that where i referred to overloading giving
me a headache as you "overloaded" the '*' to mean PLUS
was darned near serious...
mebbe it's just me, but try as i might, i cannot come up
with code that obfuscated. my teachers used 20lb sledge's
to bash my brains with the 'code clearly' concept.
i still have nightmares =->
--Hawke' (still a wee puzzled and con-fus-elled)
|
Not Categorized, Please Help
|
|