A small update to the coding guidelines.
Am I OK to commit this ?
thanks
john
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/development/ChangeLog,v
retrieving revision 1.2
diff -u -p -r1.2 ChangeLog
--- ChangeLog 2001/02/09 12:29:51 1.2
+++ ChangeLog 2001/03/30 10:49:47
@@ -1,3 +1,7 @@
+2001-03-30 John Levon <[EMAIL PROTECTED]>
+
+ * Code_rules/Rules: update for namespaces allowed
+
2001-02-09 John Levon <[EMAIL PROTECTED]>
* Code_rules/Recommendations:
Index: Code_rules/Rules
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/development/Code_rules/Rules,v
retrieving revision 1.10
diff -u -p -r1.10 Rules
--- Code_rules/Rules 2001/02/09 12:29:51 1.10
+++ Code_rules/Rules 2001/03/30 10:49:47
@@ -90,6 +90,9 @@ in C++.
- Make the scope of a variable as small as possible.
+- Make good use of namespaces. Prefer anonymous namespaces to declaring
+ "static" for file scope.
+
- Prefer preincrement to postincrement whenever possible.
Preincrement has potential of being faster than postincrement. Just
thing about the obvious implementations of pre/post-increment. This
@@ -375,14 +378,6 @@ deciding what kind of function to add to
else
make f a member function of C;
-To make the best use of this kind of Class API we need namespaces.
-Currently LyX still supports compilers that do not have good namespace
-support, so namespace declarations are enclosed as :
-
-#ifdef CXX_WORKING_NAMESPACES
-using Liason::setMinibuffer;
-#endif
-
(I'll fill in more from Scott Meyers article when time allows.)
References
--
"Nothing would please me more than being able to hire ten programmers and
deluge the hobby market with good software."
- Bill Gates