summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-13 08:26:24 +0200
committerAraq <rumpf_a@web.de>2014-10-13 08:26:24 +0200
commitc7570dcd3e4202bd339a2ebbc09952a546c62269 (patch)
tree1e3b7a73a597bc825b03bce6ebac4db9a3d7d237 /doc
parent5272213da4b0701890d8a42fb292962704f0b99d (diff)
parentb7befd69ba0051c1db44a37c8c3e06c48990a9b1 (diff)
downloadNim-c7570dcd3e4202bd339a2ebbc09952a546c62269.tar.gz
Merge branch 'devel' into bigbreak
Conflicts:
	compiler/ast.nim
	compiler/nimfix/prettybase.nim
	compiler/pragmas.nim
	compiler/sempass2.nim
	doc/manual.txt
	koch.nim
	lib/pure/concurrency/threadpool.nim
	web/news.txt
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/pragmas.txt20
-rw-r--r--doc/nimdoc.css5
2 files changed, 25 insertions, 0 deletions
diff --git a/doc/manual/pragmas.txt b/doc/manual/pragmas.txt
index 1a19cb129..6181b3e1b 100644
--- a/doc/manual/pragmas.txt
+++ b/doc/manual/pragmas.txt
@@ -9,6 +9,26 @@ first implementation to play with a language feature before a nicer syntax
 to access the feature becomes available.
 
 
+deprecated pragma
+-----------------
+
+The deprecated pragma is used to mark a symbol as deprecated:
+
+.. code-block:: nimrod
+  proc p() {.deprecated.}
+  var x {.deprecated.}: char
+
+It can also be used as a statement. Then it takes a list of *renamings*. The
+upcoming ``nimfix`` tool can automatically update the code and perform these
+renamings:
+
+.. code-block:: nimrod
+  type
+    File = object
+    Stream = ref object
+  {.deprecated: [TFile: File, PStream: Stream].}
+
+
 noSideEffect pragma
 -------------------
 The ``noSideEffect`` pragma is used to mark a proc/iterator to have no side
diff --git a/doc/nimdoc.css b/doc/nimdoc.css
index 6154f0b2e..e3bab07de 100644
--- a/doc/nimdoc.css
+++ b/doc/nimdoc.css
@@ -16,6 +16,11 @@ customize this style sheet.
    Andreas Rumpf

 */

 

+body {

+  color: black;

+  background: white;

+}

+

 /* used to remove borders from tables and images */

 .borderless, table.borderless td, table.borderless th {

   border: 0 }