I can create a pointer to a
pointer and if I have a pointer to a string what’s the way to “convert” it back? Basically create a String where the first char is pointed at by the
s = "abc" ptr = pointer(s) # how do I convert the ptr back to a string? By pointing to it?
Actually, I am looking for a way where
yp are the same, so as to conserve memory
x = "abc" xp = pointer(x) y = unsafe_string(xp) yp = pointer(y) yp == xp # false