From adfc6b4869ac1dc0055fa7ee134e150b2ecbabbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Fri, 26 Oct 2018 14:29:06 -0300 Subject: [PATCH] Update classes.rst --- Doc/tutorial/classes.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 7d3b823a14e035c..edbc43fb1b5d01a 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -672,6 +672,9 @@ be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject to change without notice. +.. index:: + pair: name; mangling + Since there is a valid use-case for class-private members (namely to avoid name clashes of names with names defined by subclasses), there is limited support for such a mechanism, called :dfn:`name mangling`. Any identifier of the form