the 'using construct is not .experimental anymore

This commit is contained in:
Araq 2017-09-30 18:32:22 +02:00
commit b2c358be96
2 changed files with 0 additions and 6 deletions

View file

@ -437,8 +437,6 @@ proc isDiscardUnderscore(v: PSym): bool =
proc semUsing(c: PContext; n: PNode): PNode = proc semUsing(c: PContext; n: PNode): PNode =
result = ast.emptyNode result = ast.emptyNode
if not isTopLevel(c): localError(n.info, errXOnlyAtModuleScope, "using") 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): for i in countup(0, sonsLen(n)-1):
var a = n.sons[i] var a = n.sons[i]
if gCmd == cmdIdeTools: suggestStmt(c, a) if gCmd == cmdIdeTools: suggestStmt(c, a)

View file

@ -547,9 +547,6 @@ Instead of:
Using statement 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 using statement provides syntactic convenience in modules where
the same parameter names and types are used over and over. Instead of: 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.: ``Node`` etc.:
.. code-block:: nim .. code-block:: nim
{.experimental.}
using using
c: Context c: Context
n: Node n: Node