Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
teaspoon
on Jan 4, 2012
|
parent
|
context
|
favorite
| on:
Never create Ruby strings longer than 23 character...
Ruby strings are mutable, so you need to be able to free
s->data
without freeing the RString itself.
ori_b
on Jan 5, 2012
[–]
s = realloc(s, sizeof(RString));
haileys
on Jan 5, 2012
|
parent
[–]
MRI objects are not relocatable so that won't work if realloc has to move the structure in memory
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: