[Tutor] Objects C++ vs Python

Alan Gauld alan.gauld at btinternet.com
Fri Jun 10 01:45:47 CEST 2011


"Ashwini Oruganti" <msg.ashwini at gmail.com> wrote

> Didn't know that!  It's interesting that  GObject is itself written 
> in C,
> which is a procedural laguage..

The original implementation of C++ was called cfront which was
a preprocessor which converted C++ code into vanilla C ready
for compilation. (Actually there was an earlier version but it
wasn't generally available outside Bell Labs)

OOP isn't really that mysterious, it's just a bunch of data
structures. About the only thing you really need is the ability
to create a grouped data structure and the ability to reference
a function and then include that reference within your
grouped data.

Thats why you can get OOP versions of almost any
language - even COBOL!

Alan G. 




More information about the Tutor mailing list