summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-07-02 16:18:11 +0200
committerAraq <rumpf_a@web.de>2015-07-02 16:18:11 +0200
commitcabbcd411d93ab1787414715b68b5239a9cee2ae (patch)
tree2b63596d3d669a7d5465f9de39d9b619c09efd2d /compiler/ast.nim
parentde5113805a67e6e2a1aa647af6e7529713ecd418 (diff)
downloadNim-cabbcd411d93ab1787414715b68b5239a9cee2ae.tar.gz
implements varargs[untyped]; refs #2545; to be documented
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r--compiler/ast.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index 95aae035d..0a7fc28f4 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -522,6 +522,9 @@ const
   tfUnion* = tfNoSideEffect
   tfGcSafe* = tfThread
   tfObjHasKids* = tfEnumHasHoles
+  tfOldSchoolExprStmt* = tfVarargs # for now used to distinguish \
+    # 'varargs[expr]' from 'varargs[untyped]'. Eventually 'expr' will be
+    # deprecated and this mess can be cleaned up.
   skError* = skUnknown
 
   # type flags that are essential for type equality:
@@ -618,7 +621,7 @@ const
   # thus cannot be overloaded (also documented in the spec!):
   SpecialSemMagics* = {
     mDefined, mDefinedInScope, mCompiles, mLow, mHigh, mSizeOf, mIs, mOf,
-    mEcho, mShallowCopy, mExpandToAst, mParallel, mSpawn, mAstToStr}
+    mShallowCopy, mExpandToAst, mParallel, mSpawn, mAstToStr}
 
 type
   PNode* = ref TNode