[Spice-devel] [PATCH 07/11] make red_pipe_item_unref more typesafe
Frediano Ziglio
fziglio at redhat.com
Mon May 23 09:35:29 UTC 2016
>
> 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
More information about the Spice-devel
mailing list