Re: [PATCH 07/11] make red_pipe_item_unref more typesafe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> On Fri, May 20, 2016 at 03:35:50PM -0500, Jonathon Jongsma wrote:
> > ok, I'll take some added typesafety over a having to pass the ->parent
> > occasionally
> 
> Explicitly passing ->parent does not scale well though if you start
> adding intermediate classes in the inheritance tree.
> 
> Christophe
> 

It all started when I wanted to remove/move some fields from a
structure and finding that code continued to compile but just
crashed... sometimes!
Usually plain C you are expecting a compilation failure when
fields/function disappears from source. This is IMHO a good
thing of static languages, lot of stuff are done by the
compiler.

When we talked about moving to C++ to solve these issues you
said that having more code was not an issue and "just a
problem of copy & paste"... did you change your mind?

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]