|
|
Darren New wrote:
> Warp wrote:
>> Exactly which part of C is simpler for newbies than C++?
>
> You don't have to deal with constructors, destructors, exceptions, the
> difference between casing classes and casting pointers to classes, etc.
Right; instead, you have to deal with a dozen different library
implementations of object construction, destruction and error handling;
such as GObject :)
Another example: POV-Ray 3.6 has virtual functions reinvented in C (to call
"intersect with ray" on any Object* without knowing if it's a Sphere or an
Isosurface). It's harder to figure out what's going on than if you just had
a C++ class with virtual methods, because no other C program does it
**exactly** the same way as POV 3.6.
Post a reply to this message
|
|