documentation improvements

This commit is contained in:
Araq 2014-10-19 20:05:01 +02:00
commit 2e4447ca85
3 changed files with 11 additions and 16 deletions

View file

@ -4384,6 +4384,8 @@ helper distinct or object type has to be used for one pointer type.
operator `=` operator `=`
------------ ------------
**Note**: Overriding the assignment operator has not yet been implemented.
This operator is the assignment operator. Note that in the contexts This operator is the assignment operator. Note that in the contexts
like ``let v = expr``, ``var v = expr``, ``parameter = defaultValue`` or for like ``let v = expr``, ``var v = expr``, ``parameter = defaultValue`` or for
parameter passing no assignment is performed. The ``override`` pragma is parameter passing no assignment is performed. The ``override`` pragma is

View file

@ -438,18 +438,6 @@ module. Example:
echo "Got exception ", repr(e), " with message ", msg 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 Annotating procs with raised exceptions
--------------------------------------- ---------------------------------------

View file

@ -239,7 +239,7 @@ proc mexec(cmds: openarray[string], processors: int) =
sexec(cmds) sexec(cmds)
return 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!" echo "external program failed, retrying serial work queue for logs!"
sexec(cmds) sexec(cmds)
@ -289,8 +289,10 @@ proc buildPdfDoc(c: var TConfigData, destPath: string) =
exec("pdflatex " & changeFileExt(d, "tex")) exec("pdflatex " & changeFileExt(d, "tex"))
exec("pdflatex " & changeFileExt(d, "tex")) exec("pdflatex " & changeFileExt(d, "tex"))
# delete all the crappy temporary files: # delete all the crappy temporary files:
var pdf = splitFile(d).name & ".pdf" let pdf = splitFile(d).name & ".pdf"
moveFile(dest=destPath / pdf, source=pdf) let dest = destPath / pdf
removeFile(dest)
moveFile(dest=dest, source=pdf)
removeFile(changeFileExt(pdf, "aux")) removeFile(changeFileExt(pdf, "aux"))
if existsFile(changeFileExt(pdf, "toc")): if existsFile(changeFileExt(pdf, "toc")):
removeFile(changeFileExt(pdf, "toc")) removeFile(changeFileExt(pdf, "toc"))
@ -432,4 +434,7 @@ var c: TConfigData
initConfigData(c) initConfigData(c)
parseCmdLine(c) parseCmdLine(c)
parseIniFile(c) parseIniFile(c)
when false:
buildPdfDoc(c, "doc")
else:
main(c) main(c)