Thank you mratsim. I will use ByteAddress instead of int. Anyway, Can you please guide me on this ? type ListClass = ref object typ : typedesc pointR : ByteAddress var x = new ListClass x.typ = string x.pointR = cast[ByteAddress](addr("A sample string")) var y : seq[ListClass] y.add(x) # Then later... var z = cast[ref y[0].typ](y[0].pointR) echo z[] # Here i want to print "A sample string" Run
- How to convert integer to pointer kcvinu
- Re: How to convert integer to pointer kcvinu
- Re: How to convert integer to pointer mratsim
- Re: How to convert integer to pointer kcvinu
- Re: How to convert integer to pointer Jehan
- Re: How to convert integer to pointe... mratsim
- Re: How to convert integer to po... kcvinu
- Re: How to convert integer t... kcvinu
- Re: How to convert integer t... LeuGim
- Re: How to convert integer t... kcvinu
- Re: How to convert integer t... mashingan
- Re: How to convert integer t... Stefan_Salewski
- Re: How to convert integer t... mratsim
- Re: How to convert integer t... kcvinu