closures have an object type field so that we can perform correct deepCopy() for the BoehmGC target
This commit is contained in:
parent
1f13e94dd0
commit
ad608838bf
7 changed files with 40 additions and 19 deletions
|
|
@ -142,7 +142,7 @@ proc createStateField(iter: PSym): PSym =
|
|||
proc createEnvObj(owner: PSym; info: TLineInfo): PType =
|
||||
# YYY meh, just add the state field for every closure for now, it's too
|
||||
# hard to figure out if it comes from a closure iterator:
|
||||
result = createObj(owner, info)
|
||||
result = createObj(owner, info, final=false)
|
||||
rawAddField(result, createStateField(owner))
|
||||
|
||||
proc getIterResult(iter: PSym): PSym =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue