name : Int8 = 85
start : ??? = pointerof(name)
puts start
It would be Pointer(Int8)
. See pointerof - Crystal. Can also do puts typeof(start)
to see this first hand. But fwiw either way, you don’t really need to type local vars like this.
1 Like