From 5ff234116efd4ef0e551c2bc608be3e54af3e55b Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 19 Sep 2024 11:54:51 +0300 Subject: [PATCH] Note about style Information about naming constructors and destructors --- cstyle.7 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/cstyle.7 b/cstyle.7 index 25fc811..75aa52d 100644 --- a/cstyle.7 +++ b/cstyle.7 @@ -172,7 +172,9 @@ next name). Namespaces and classes are named in PascalCase. For example: -.Dl Namespace_Class_init +.Dl Namespace_Class_doStuff +. +.Pp I may name Functions related to main (needed for starting the main program) @@ -186,6 +188,18 @@ are named in pascalCase: .Dl Namespace_Class_someMethod . .Pp +Constructors are named +as the class' name: +.Dl Namespace_Class +. +.Pp +Destructors are named +as constructos +but with an anuderscore +at the end: +.Dl Namespace_Class_ +. +.Pp Types, structs, enums,