]> git.lyx.org Git - features.git/commitdiff
update namespace comment.
authorJohn Levon <levon@movementarian.org>
Mon, 2 Apr 2001 12:43:30 +0000 (12:43 +0000)
committerJohn Levon <levon@movementarian.org>
Mon, 2 Apr 2001 12:43:30 +0000 (12:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1871 a592a061-630c-0410-9148-cb99ea01b6c8

development/ChangeLog
development/Code_rules/Rules

index 9a5b39d5058f461ed98965ce7b1b660d77e70f6f..206782065ef428c989f0f03e9afad6d0a5ad3cda 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-30  John Levon  <moz@compsoc.man.ac.uk>
+
+       * Code_rules/Rules: update for namespaces allowed
+
 2001-02-09  John Levon  <moz@compsoc.man.ac.uk>
 
        * Code_rules/Recommendations:
index 8bd29b36d5a87ba5f1cbdac440c8aaed470fa20f..a5655ffdb6360e6e2b490732b53b4b2d71db4b78 100644 (file)
@@ -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 a class interface:
        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