summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-19 20:05:01 +0200
committerAraq <rumpf_a@web.de>2014-10-19 20:05:01 +0200
commit2e4447ca852b4f462814e95c72c2b0dd7893bd6f (patch)
treeb7d1cc0c175eb6698d0dcc1e7463da4d2110aa95
parent4cca562c4a5386656c85008ba17865b67b479fc5 (diff)
downloadNim-2e4447ca852b4f462814e95c72c2b0dd7893bd6f.tar.gz
documentation improvements
-rw-r--r--doc/manual.txt2
-rw-r--r--doc/tut2.txt12
-rw-r--r--tools/nimweb.nim13
3 files changed, 11 insertions, 16 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index 6aed72ce7..c150d27e2 100644
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -4384,6 +4384,8 @@ helper distinct or object type has to be used for one pointer type.
 operator `=`
 ------------
 
+**Note**: Overriding the assignment operator has not yet been implemented.
+
 This operator is the assignment operator. Note that in the contexts 
 like ``let v = expr``, ``var v = expr``, ``parameter = defaultValue`` or for
 parameter passing no assignment is performed. The ``override`` pragma is
diff --git a/doc/tut2.txt b/doc/tut2.txt
index 2f42bcefc..582a6b3e4 100644
--- a/doc/tut2.txt
+++ b/doc/tut2.txt
@@ -438,18 +438,6 @@ module.  Example:
     echo "Got exception ", repr(e), " with message ", msg
 
 
-Exception hierarchy
--------------------
-
-If you want to create your own exceptions you can inherit from E_Base, but you
-can also inherit from one of the existing exceptions if they fit your purpose.
-The exception tree is:
-
-.. include:: exception_hierarchy_fragment.txt
-
-See the `system <system.html>`_ module for a description of each exception.
-
-
 Annotating procs with raised exceptions
 ---------------------------------------
 
diff --git a/tools/nimweb.nim b/tools/nimweb.nim
index d76c5e354..00faecc01 100644
--- a/tools/nimweb.nim
+++ b/tools/nimweb.nim
@@ -239,7 +239,7 @@ proc mexec(cmds: openarray[string], processors: int) =
     sexec(cmds)
     return
 
-  if 0 != execProcesses(cmds, {poStdErrToStdOut, poParentStreams, poEchoCmd}):
+  if execProcesses(cmds, {poStdErrToStdOut, poParentStreams, poEchoCmd}) != 0:
     echo "external program failed, retrying serial work queue for logs!"
     sexec(cmds)
 
@@ -289,8 +289,10 @@ proc buildPdfDoc(c: var TConfigData, destPath: string) =
       exec("pdflatex " & changeFileExt(d, "tex"))
       exec("pdflatex " & changeFileExt(d, "tex"))
       # delete all the crappy temporary files:
-      var pdf = splitFile(d).name & ".pdf"
-      moveFile(dest=destPath / pdf, source=pdf)
+      let pdf = splitFile(d).name & ".pdf"
+      let dest = destPath / pdf
+      removeFile(dest)
+      moveFile(dest=dest, source=pdf)
       removeFile(changeFileExt(pdf, "aux"))
       if existsFile(changeFileExt(pdf, "toc")):
         removeFile(changeFileExt(pdf, "toc"))
@@ -432,4 +434,7 @@ var c: TConfigData
 initConfigData(c)
 parseCmdLine(c)
 parseIniFile(c)
-main(c)
+when false:
+  buildPdfDoc(c, "doc")
+else:
+  main(c)