POV-Ray : Newsgroups : povray.off-topic : Coding in ___ is like ___ : Re: Coding in ___ is like ___ Server Time
4 Sep 2024 19:18:15 EDT (-0400)
  Re: Coding in ___ is like ___  
From: Nicolas Alvarez
Date: 4 Mar 2010 17:45:06
Message: <4b9037f2@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.