chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various, style: Generally prefer `: ' over ` : '.
[sod]
/
doc
/
syntax.tex
diff --git
a/doc/syntax.tex
b/doc/syntax.tex
index 18b46e176e64852ad2ad3ca01200cdbc751ee18a..c6033cf3cd53fdcdb154e83b67a55c6cfd1d8c7c 100644
(file)
--- a/
doc/syntax.tex
+++ b/
doc/syntax.tex
@@
-540,11
+540,11
@@
necessary in order to resolve certain kinds of circularity. For example,
\begin{prog}
class Sub; \\+
\begin{prog}
class Sub; \\+
-class Super
: SodObject \{
\\ \ind
+class Super
: SodObject \{
\\ \ind
Sub *sub; \-\\
\}; \\+
Sub *sub; \-\\
\}; \\+
-class Sub
: Super \{
\\ \ind
+class Sub
: Super \{
\\ \ind
/* \dots\ */ \-\\
\};
\end{prog}
/* \dots\ */ \-\\
\};
\end{prog}
@@
-625,14
+625,14
@@
An @<initializer>, if present, is treated as if a separate
For example,
\begin{prog}
[nick = eg] \\
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] \\
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; \-\\
\};
int foo; \\
eg.foo = 17; \-\\
\};