D8043: KDirWatch : make methods virtual

Dominik Haumann noreply at phabricator.kde.org
Fri Sep 29 05:52:19 UTC 2017


dhaumann added a comment.


  @rjvbb you are changing the memory layout of instances of this class. All applications that use this class / library will break without recompiling.
  
  The KDE Frameworks guarantee binary compatibility backwards. See:
  https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B
  
  To get more familiar with this topic, I can also recommend to watch:
  https://m.youtube.com/watch?v=PHrXGHDd9no
  
  In short: there are very strict rules of what you can do with public (=exported, =visible) C++ classes. And adding virtual functions is on the blacklist :)

REPOSITORY
  R244 KCoreAddons

REVISION DETAIL
  https://phabricator.kde.org/D8043

To: rjvbb, #frameworks, mwolff, dfaure
Cc: dhaumann, cfeck, dfaure, mwolff, kde-frameworks-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170929/ec033cda/attachment.html>


More information about the Kde-frameworks-devel mailing list