work on closures continues; fixed #116

This commit is contained in:
Araq 2012-07-13 00:50:56 +02:00
commit 8ce1c99d0d
3 changed files with 23 additions and 4 deletions

View file

@ -245,6 +245,7 @@ type
# language; for interfacing with Objective C
sfDiscardable # returned value may be discarded implicitely
sfDestructor # proc is destructor
sfByCopy # a variable is to be captured by value in a closure
TSymFlags* = set[TSymFlag]
@ -264,9 +265,6 @@ const
sfShadowed* = sfInnerProc
# a variable that was shadowed in some inner scope
sfByCopy* = sfBorrow
# a variable is to be captured by value in a closure
sfHoist* = sfVolatile ## proc return value can be hoisted