mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-06 07:38:24 +00:00
@@ -621,7 +621,7 @@ compilation options are different:
|
||||
.. Note:: markup documents are just placed into the specified directory
|
||||
`OUTDIR`:option: by default (i.e. they are **not** affected by
|
||||
`--project`:option:), so if you have ``PROJECT/doc/manual.md``
|
||||
document and want to use complex hirearchy (with ``doc/``),
|
||||
document and want to use complex hierarchy (with ``doc/``),
|
||||
compile it with `--docroot`:option:\:
|
||||
```cmd
|
||||
# 1st stage
|
||||
@@ -688,7 +688,7 @@ the rest optional. See the [Index (idx) file format] section for details.
|
||||
|
||||
.. Note:: `--index`:option: switch only affects creation of ``.idx``
|
||||
index files, while user-searchable Index HTML file is created by
|
||||
`buildIndex`:option: commmand.
|
||||
`buildIndex`:option: command.
|
||||
|
||||
Buildindex command
|
||||
------------------
|
||||
|
||||
@@ -2378,7 +2378,7 @@ proc makeCppClass(): NimClass {.constructor: "NimClass() : CppClass(0, 0)".} =
|
||||
result.x = 1
|
||||
```
|
||||
|
||||
In the example above `CppClass` has a deleted default constructor. Notice how by using the constructor syntax, one can call the appropiate constructor.
|
||||
In the example above `CppClass` has a deleted default constructor. Notice how by using the constructor syntax, one can call the appropriate constructor.
|
||||
|
||||
Notice when calling a constructor in the section of a global variable initialization, it will be called before `NimMain` meaning Nim is not fully initialized.
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ nim md2html file2.md # creates ``htmldocs/file2.html``
|
||||
```
|
||||
|
||||
To allow cross-references between any files in any order (especially, if
|
||||
circular references are present), it's strongly reccommended
|
||||
circular references are present), it's strongly recommended
|
||||
to make a run for creating all the indexes first:
|
||||
|
||||
```cmd
|
||||
|
||||
@@ -486,7 +486,7 @@ DLL generation
|
||||
==============
|
||||
|
||||
**Note**: The same rules apply to `lib*.so` shared object files on UNIX. For better
|
||||
readability only the DLL version is decribed here.
|
||||
readability only the DLL version is described here.
|
||||
|
||||
Nim supports the generation of DLLs. However, there must be only one
|
||||
instance of the GC per process/address space. This instance is contained in
|
||||
|
||||
Reference in New Issue
Block a user