X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/5b0c3a982e3d53b9a2b0a823eeeb511b5bdaf0fd..8d952432c8b961e4e0891eb78620615a8ae14f05:/doc/syntax.tex diff --git a/doc/syntax.tex b/doc/syntax.tex index 15948cb..64b10f4 100644 --- a/doc/syntax.tex +++ b/doc/syntax.tex @@ -616,7 +616,10 @@ names, to distinguish them from other kinds of identifiers. The @$[\mbox{@}]$ names the direct superclasses for the new class. It is an error if any of these @s does not name a defined -class. +class. The superclass list is required, and must not be empty; listing +@|SodObject| as your class's superclass is a good choice if nothing else +seems suitable. It's not possible to define a \emph{root class} in the Sod +language: you must use Lisp to do this, and it's quite involved. The @ provide additional information. The standard class properties are as follows.