From: normalperson@... Date: 2015-06-02T02:33:58+00:00 Subject: [ruby-core:69439] [Ruby trunk - Feature #11207] [Open] [PATCH] ext/socket/ancdata.c (bsock_sendmsg_internal): use rb_scan_args Issue #11207 has been reported by Eric Wong. ---------------------------------------- Feature #11207: [PATCH] ext/socket/ancdata.c (bsock_sendmsg_internal): use rb_scan_args https://bugs.ruby-lang.org/issues/11207 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Akira Tanaka ---------------------------------------- This should make the code more maintainable and make it easy to add keyword argument (to support "exception: false") in the future. This unfortunately may cause extra allocations, but I don't think it's worth worrying about since there are other rb_scan_args callers which do the same thing as well. akr: any comment? I might commit this in a few days and prepare another patch for "exception: false" support. Thanks. ---Files-------------------------------- 0001-ext-socket-ancdata.c-bsock_sendmsg_internal-use-rb_s.patch (2.35 KB) -- https://bugs.ruby-lang.org/