further adaptations
This commit is contained in:
parent
cd2c6128d1
commit
c6034277fc
52 changed files with 87 additions and 87 deletions
|
|
@ -9,7 +9,7 @@ type
|
|||
proc ap(x: var TA) = x.a = -1
|
||||
proc bp(x: var TB) = x.b[high(x.b)] = -1
|
||||
|
||||
# in Nimrod proc (x: TB) is compatible to proc (x: TA),
|
||||
# in Nim proc (x: TB) is compatible to proc (x: TA),
|
||||
# but this is not type safe:
|
||||
var f = cast[proc (x: var TA) {.nimcall.}](bp)
|
||||
var a: TA
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue