implemented locking levels; still incomplete

This commit is contained in:
Araq 2014-09-27 15:06:06 +02:00
commit d576fbb39a
7 changed files with 58 additions and 19 deletions

View file

@ -304,13 +304,6 @@ proc handleGenericInvokation(cl: var TReplTypeVars, t: PType): PType =
# 'deepCopy' needs to be instantiated for
# generics *when the type is constructed*:
newbody.deepCopy = cl.c.instDeepCopy(cl.c, dc, result, cl.info)
when false:
var bindings: TIdTable
initIdTable(bindings)
debug newbody
bindings.idTablePut(dc.ast[genericParamsPos].sons[0].typ, newbody)
newbody.deepCopy = cl.c.semGenerateInstance(cl.c, dc, bindings, cl.info)
assert sfFromGeneric in newbody.deepCopy.flags
proc eraseVoidParams*(t: PType) =
if t.sons[0] != nil and t.sons[0].kind == tyEmpty: