Various, style: Generally prefer `: ' over ` : '.
[sod] / doc / syntax.tex
index 18b46e1..c6033cf 100644 (file)
@@ -540,11 +540,11 @@ necessary in order to resolve certain kinds of circularity.  For example,
 \begin{prog}
 class Sub;                                                      \\+
 
-class Super : SodObject \{                                      \\ \ind
+class Super: SodObject \{                                       \\ \ind
   Sub *sub;                                                   \-\\
 \};                                                             \\+
 
-class Sub : Super \{                                            \\ \ind
+class Sub: Super \{                                             \\ \ind
   /* \dots\ */                                                \-\\
 \};
 \end{prog}
@@ -625,14 +625,14 @@ An @<initializer>, if present, is treated as if a separate
 For example,
 \begin{prog}
 [nick = eg]                                                     \\
-class Example : Super \{                                        \\ \ind
+class Example: Super \{                                         \\ \ind
   int foo = 17;                                               \-\\
 \};
 \end{prog}
 means the same as
 \begin{prog}
 [nick = eg]                                                     \\
-class Example : Super \{                                        \\ \ind
+class Example: Super \{                                         \\ \ind
   int foo;                                                      \\
   eg.foo = 17;                                                \-\\
 \};