don't invoke destructors for .global. variables
This commit is contained in:
parent
61a43979e6
commit
d16c04d8f8
2 changed files with 4 additions and 2 deletions
|
|
@ -1078,7 +1078,8 @@ proc insertDestructors(c: PContext, varSection: PNode):
|
||||||
varTyp = varId.sym.typ
|
varTyp = varId.sym.typ
|
||||||
info = varId.info
|
info = varId.info
|
||||||
|
|
||||||
if varTyp != nil and instantiateDestructor(c, varTyp):
|
if varTyp != nil and instantiateDestructor(c, varTyp) and
|
||||||
|
sfGlobal notin varId.sym.flags:
|
||||||
var tryStmt = newNodeI(nkTryStmt, info)
|
var tryStmt = newNodeI(nkTryStmt, info)
|
||||||
|
|
||||||
if j < totalVars - 1:
|
if j < totalVars - 1:
|
||||||
|
|
|
||||||
3
todo.txt
3
todo.txt
|
|
@ -1,11 +1,12 @@
|
||||||
version 0.9.2
|
version 0.9.2
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
- fix closure bug finally
|
||||||
- test&finish first class iterators:
|
- test&finish first class iterators:
|
||||||
* nested iterators
|
* nested iterators
|
||||||
* document them
|
* document them
|
||||||
- fix closure bug finally
|
|
||||||
- fix marshal bug
|
- fix marshal bug
|
||||||
|
- investigate nimgame bug
|
||||||
|
|
||||||
|
|
||||||
version 0.9.X
|
version 0.9.X
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue