Re:Ruby's Object.new in C
by shortlived on Thursday October 23, 2014 @07:09PM
(#8501227)
Basic C question. In the rb_class_new_instance function, isn't "VALUE obj" a local variable and therefor should not be returned?
[ Parent
| on HN ]
Re:Ruby's Object.new in C
by montanalow on Thursday October 23, 2014 @07:19PM
(#8501260)
Would love to have questions like this on Omniref for other code readers. VALUE is in fact a pointer, ie a raw integer, which is pass by value in C, so it's fine to return.