2 ms·
AFAIK str2 = str will just share the RVALUE-Pointer. I think to actually see shared strings behavior, you would have to do str2 = str.clone or str2 = str[0..-1
by flgr 15y ago
AFAIK str2 = str will just share the RVALUE-Pointer.
I think to actually see shared strings behavior, you would have to do str2 = str.clone or str2 = str[0..-1].