commit 0e2a274b5ccc24a2ebfdaacfd20a89df6a2b7f47
parent 576c221eab502dd84e376a1e0f5f0e118c2edb9b
Author: Gabriel G. de Brito <gabrielgbrito@icloud.com>
Date: Wed, 23 Oct 2024 19:47:08 -0300
Fuck Object Orientation
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/content/posts/notes-on-cpp.md b/content/posts/notes-on-cpp.md
@@ -27,3 +27,7 @@ I'll update this rather frequently.
don't want to force flush a file output.
- Avoid `static` duration objects as their initialization and termination
processes happens at a not well-defined time.
+- Classes only have RTTI when they're virtual, so, if, for some reason, you (May
+ God help you) need typeinfo for a non-polymorphic class, you must use a
+ placeholder USELESS virtual function like `virtual void
+ ImAClownForCodingInThisShittyLanguage()`.