You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gc_ref(x: string) and Gc_ref[T](x: seq[T]) both throws a type mismatch on nim 2.0 when using --mm:orc or --mm:arc (works with --mm:refc)
It seems a pretty strong problem when interfacing with unmanaged memory efficiently
Nim Version
nim v2.0.4 - fedora linux
Current Output
var x1 = "nim"
GC_ref(x1)
var x2 = @["is nice"]
GC_ref(x2)
>>> nim r myfile.nim
Expression: GC_ref(x1)
[1] x1: string
Expected one of (first mismatch at [position]):
[1] proc GC_ref[T](x: ref T)
The text was updated successfully, but these errors were encountered:
Description
Hello,
Gc_ref(x: string) and Gc_ref[T](x: seq[T]) both throws a type mismatch on nim 2.0 when using --mm:orc or --mm:arc (works with --mm:refc)
It seems a pretty strong problem when interfacing with unmanaged memory efficiently
Nim Version
nim v2.0.4 - fedora linux
Current Output
The text was updated successfully, but these errors were encountered: