I take it there’s a bunch of setup happening within the interpreter that
makes a lot of calls to str_alloc() before the interpeter ever runs?
That, or I’ve messed something up.
string.c.
Well, I’m just tinkering around for now. However, I did realize
something interesting. I put a printf in the str_alloc() function as
you mentioned and ran an empty Ruby program. Even an empty Ruby program
appears to invoke the str_alloc function 107 times!
I take it there’s a bunch of setup happening within the interpreter that
makes a lot of calls to str_alloc() before the interpeter ever runs?
That, or I’ve messed something up.
In general, #initialize is not called for literals.
matz.
Good to know, thanks,
Dan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.