On 19 June 2017 at 05:08, Emilio G. Cota <c...@braap.org> wrote: > On Sun, Jun 18, 2017 at 17:37:39 +0300, Lluís Vilanova wrote: >> I kind of dislike it every time I see container_of, and it makes type >> checking from the compiler a bit more fragile. > > container_of is *very* useful! You should like it more :-)
Or you could use qom objects, where the parent-to-child cast is checked. thanks -- PMM