example1:

let t1 = "Hello"

var
    t2 = t1 t3 : pointer = addr(t2)

echo repr([ptr string]) #Here is an error,hallo.nims(24, 12) Error: cannot 
generate VM code for ptr string

example2: let ws2 = loadLib(ws2dll) echo ws2 #Here is an error,hallo.nims(5, 
12) Error: cannot generate VM code for ptr string

All reported errors related to the vm,

OS windows7 64bit

# nim version

nim -v Nim Compiler Version 1.0.0 [Windows: amd64] Compiled at 2019-09-23 
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: f7a8fc46c0012033917582eb740dc0343c093e35 active boot switches: 
-d:release

Reply via email to