system.nim: documentation fixes
This commit is contained in:
parent
3c98518487
commit
2d8138768a
2 changed files with 7 additions and 6 deletions
|
|
@ -2212,8 +2212,8 @@ proc getTypeInfo*[T](x: T): pointer {.magic: "GetTypeInfo".}
|
||||||
proc slurp*(filename: string): string {.magic: "Slurp".}
|
proc slurp*(filename: string): string {.magic: "Slurp".}
|
||||||
proc staticRead*(filename: string): string {.magic: "Slurp".}
|
proc staticRead*(filename: string): string {.magic: "Slurp".}
|
||||||
## compile-time ``readFile`` proc for easy `resource`:idx: embedding:
|
## compile-time ``readFile`` proc for easy `resource`:idx: embedding:
|
||||||
## .. code-block:: nimrod
|
|
||||||
##
|
##
|
||||||
|
## .. code-block:: nimrod
|
||||||
## const myResource = staticRead"mydatafile.bin"
|
## const myResource = staticRead"mydatafile.bin"
|
||||||
##
|
##
|
||||||
## ``slurp`` is an alias for ``staticRead``.
|
## ``slurp`` is an alias for ``staticRead``.
|
||||||
|
|
@ -2225,8 +2225,8 @@ proc staticExec*(command: string, input = ""): string {.
|
||||||
## executes an external process at compile-time.
|
## executes an external process at compile-time.
|
||||||
## if `input` is not an empty string, it will be passed as a standard input
|
## if `input` is not an empty string, it will be passed as a standard input
|
||||||
## to the executed program.
|
## to the executed program.
|
||||||
## .. code-block:: nimrod
|
|
||||||
##
|
##
|
||||||
|
## .. code-block:: nimrod
|
||||||
## const buildInfo = "Revision " & staticExec("git rev-parse HEAD") &
|
## const buildInfo = "Revision " & staticExec("git rev-parse HEAD") &
|
||||||
## "\nCompiled on " & staticExec("uname -v")
|
## "\nCompiled on " & staticExec("uname -v")
|
||||||
##
|
##
|
||||||
|
|
|
||||||
3
todo.txt
3
todo.txt
|
|
@ -1,6 +1,8 @@
|
||||||
version 0.9.0
|
version 0.9.0
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
- change how comments are part of the AST
|
||||||
|
|
||||||
Debug GC session:
|
Debug GC session:
|
||||||
- bug: stress testing basic method example (eval example)
|
- bug: stress testing basic method example (eval example)
|
||||||
without ``-d:release`` leaks memory?
|
without ``-d:release`` leaks memory?
|
||||||
|
|
@ -23,7 +25,6 @@ New pragmas:
|
||||||
- document 'do' notation
|
- document 'do' notation
|
||||||
- unsigned ints and bignums; requires abstract integer literal type:
|
- unsigned ints and bignums; requires abstract integer literal type:
|
||||||
use tyInt+node for that
|
use tyInt+node for that
|
||||||
- change how comments are part of the AST
|
|
||||||
- document nimdoc properly finally
|
- document nimdoc properly finally
|
||||||
- rethink the syntax: distinction between expr and stmt is unfortunate;
|
- rethink the syntax: distinction between expr and stmt is unfortunate;
|
||||||
indentation handling is quite complex too; problem with exception handling
|
indentation handling is quite complex too; problem with exception handling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue