From cabbcd411d93ab1787414715b68b5239a9cee2ae Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 2 Jul 2015 16:18:11 +0200 Subject: implements varargs[untyped]; refs #2545; to be documented --- compiler/ast.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compiler/ast.nim') 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 -- cgit 1.4.1-2-gfad0