summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-09-30 18:32:22 +0200
committerAraq <rumpf_a@web.de>2017-09-30 18:32:44 +0200
commitb2c358be96e496c37f4d02b0e886a06ed503af9e (patch)
treec634eb38ed1bce771174f2ad3ff403d6c560c3a7
parent3ccc9c467d84dc8c3412acbea20fc10b5335eaa8 (diff)
downloadNim-b2c358be96e496c37f4d02b0e886a06ed503af9e.tar.gz
the 'using construct is not .experimental anymore
-rw-r--r--compiler/semstmts.nim2
-rw-r--r--doc/manual/stmts.txt4
2 files changed, 0 insertions, 6 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 7ad13bebb..a4dd8f354 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -437,8 +437,6 @@ proc isDiscardUnderscore(v: PSym): bool =
 proc semUsing(c: PContext; n: PNode): PNode =
   result = ast.emptyNode
   if not isTopLevel(c): localError(n.info, errXOnlyAtModuleScope, "using")
-  if not experimentalMode(c):
-    localError(n.info, "use the {.experimental.} pragma to enable 'using'")
   for i in countup(0, sonsLen(n)-1):
     var a = n.sons[i]
     if gCmd == cmdIdeTools: suggestStmt(c, a)
diff --git a/doc/manual/stmts.txt b/doc/manual/stmts.txt
index 5668b8cc2..3a86a9730 100644
--- a/doc/manual/stmts.txt
+++ b/doc/manual/stmts.txt
@@ -547,9 +547,6 @@ Instead of:
 Using statement
 ---------------
 
-**Warning**: The ``using`` statement is experimental and has to be
-explicitly enabled with the `experimental`:idx: pragma or command line option!
-
 The using statement provides syntactic convenience in modules where
 the same parameter names and types are used over and over. Instead of:
 
@@ -563,7 +560,6 @@ name ``c`` should default to type ``Context``, ``n`` should default to
 ``Node`` etc.:
 
 .. code-block:: nim
-  {.experimental.}
   using
     c: Context
     n: Node