[clug] Object-Oriented C?

Michael Cohen michael.cohen at netspeed.com.au
Wed Feb 22 04:07:34 GMT 2006

  C++ adds a lot of bloat and library dependancies which you dont need. Also I dont think c++ can do 
introspection and other advanced features out of the box (of course c++ is just a more complex C so you 
can still do all the macros etc in that).

This implemtation of classes is tied with talloc for memory managemnet which makes programming really nice.


On Wed, Feb 22, 2006 at 02:43:33PM +1100, Drew Parsons wrote:
> On Wed, 2006-02-22 at 14:06 +1100, Michael Cohen wrote:
> > Hi Paul,
> >   I have been using object oriented programming in ANSI C for a while now. Its really quite simple to 
> > use and you do get the full gammit of things you expect with normal object oriented languages, for 
> > example inheritance and even introspection (yeah you can ask an object what type it is and list its 
> > methods as strings etc).
> If you're going to go to all that bother, why wouldn't you just use C
> ++ ?
> Drew
> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list