Project

General

Profile

Feature #15047

Documentation and more functions for Hash functions in C API

Added by v0dro (Sameer Deshmukh) 11 months ago. Updated 4 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
docs
Target version:
-
[ruby-core:88747]

Description

Currently the C API supports various Array functions like rb_ary_new() and String
functions like rb_str_new2() I could hardly find any documentation in the README.EXT
for working with hashes. Instead, I relied on this blog: http://clalance.blogspot.com/2011/01/writing-ruby-extensions-in-c-part-10.html

Having official documentation for this purpose would be better.

Also, including more functionality like getting the size a Hash directly through
a C API call would be a welcome feature.

History

Updated by shevegen (Robert A. Heiler) 11 months ago

More documentation would always be very helpful. It makes "entry" into the
ruby world easier when there is good documentation. Perhaps after ruby 3x3
we could add a new meme - four times as good documentation. :D

Updated by mrkn (Kenta Murata) 11 months ago

Also, including more functionality like getting the size a Hash directly through
a C API call would be a welcome feature.

Use RHASH_SIZE macro.

#3

Updated by v0dro (Sameer Deshmukh) 11 months ago

Can I submit the documentation for this as a GitHub PR? I just to make updates to README.EXT.

Also, thank you for the help I will make a note of that in my patch.

Updated by hsbt (Hiroshi SHIBATA) 4 months ago

  • Assignee set to docs
  • Status changed from Open to Assigned

Also available in: Atom PDF