version 0.8.10
This commit is contained in:
parent
53cd61546d
commit
765366c1f3
58 changed files with 768 additions and 30834 deletions
|
|
@ -5,11 +5,15 @@ type
|
|||
v: TV
|
||||
PDict[TK, TV] = ref TDict[TK, TV]
|
||||
|
||||
proc destroyDict[TK, TV](a : PDict[TK, TV]) =
|
||||
proc fakeNew[T](x: var ref T, destroy: proc (a: ref T)) =
|
||||
nil
|
||||
|
||||
proc destroyDict[TK, TV](a: PDict[TK, TV]) =
|
||||
return
|
||||
proc newDict[TK, TV](a: TK, b: TV): PDict[TK, TV] =
|
||||
new(result, destroyDict)
|
||||
|
||||
Fakenew(result, destroyDict)
|
||||
|
||||
# Problem: destroyDict is not instantiated when newDict is instantiated!
|
||||
|
||||
discard newDict("a", "b")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue