first version of 'spawn'

This commit is contained in:
Araq 2014-04-16 08:44:57 +02:00
commit 8e08ff559f
9 changed files with 188 additions and 37 deletions

View file

@ -1284,6 +1284,7 @@ proc prepareOperand(c: PContext; formal: PType; a: PNode): PNode =
result = a
elif a.typ.isNil:
let flags = if formal.kind == tyIter: {efDetermineType, efWantIterator}
elif formal.kind == tyStmt: {efDetermineType, efWantStmt}
else: {efDetermineType}
result = c.semOperand(c, a, flags)
else: