<html><head></head><body>And I disagree with the other patch too, so...<br><br>This is totally against common practices for doing OOP-like code in non-OOP languages like C. You can't even do that sort of change in OOP...<br><br><div class="gmail_quote">Le 10 octobre 2019 09:15:00 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 2019-10-09 18:19, Rémi Denis-Courmont wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Hi,<br><br>This feels very backward. We don't normally pass the private data. And the<br>compilers are perfectly capable to optimize the back-and-forth conversion so<br>the change is completely useless.<br></blockquote><br>container_of() is a glorified cast. One should not use cast unless <br>there's no other option.<br><br>This is exactly the same as was done in <br>`a46508d9dd8eeccc8e8fa778b331f6c027db84c7`.<hr>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>