Peter Cacioppi <peter.cacio...@gmail.com> writes:

>> What you've said here is that "without polymorphism, you can't have
>> polymorphism". :) 
>
> Respectfully, no. I refer to the distinction between object based and object 
> oriented programming. Wikipedia's entry is consistent with my understanding 
> (not to argue by wiki-authority, but the terminology here isn't my personal 
> invention).
>
> Your example of "polymorphism in a non OO" language makes my tired head hurt. 
> Do you have a clean little example of polymorphism being mocked in a 
> reasonable way with pure C? There are many nice object-based C projects 
> floating around, but real polymorphism? I think you can't do it without some 
> bizarre work-arounds, but I'd be happy to be shown otherwise.

The first C++ compilers were just preprocessors that translated into pure C 
code, which was then compiled with a C compiler. The resulting intermediate C 
code would be an object-oriented program in C. IIRC, the C code was reasonably 
clear, not really convoluted, so you would have been able to write it yourself.
-- 
Piet van Oostrum <p...@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to