Comment on Never create Ruby strings longer than 23 charactersparentComments−teaspoon14yRuby strings are mutable, so you need to be able to free s->data without freeing the RString itself.−ori_b14y s = realloc(s, sizeof(RString));−charliesome14yMRI objects are not relocatable so that won't work if realloc has to move the structure in memory
Comments
Ruby strings are mutable, so you need to be able to free s->data without freeing the RString itself.
MRI objects are not relocatable so that won't work if realloc has to move the structure in memory