Project

General

Profile

« Previous | Next » 

Revision 37478

Added by shirosaki over 6 years ago

Expose whether two arrays are shared

  • array.c (rb_ary_shared_with_p): new function.
    Expose whether two arrays are shared (read-only, C only).

  • include/ruby/intern.h (rb_ary_shared_with_p): declare.
    Patch by Greg Price.
    [ruby-core:47970] [Bug #7158]