From: "nobu (Nobuyoshi Nakada)" Date: 2013-02-20T13:05:29+09:00 Subject: [ruby-core:52554] [ruby-trunk - Bug #7861] New macro for the new feature of rb_scan_args() Issue #7861 has been updated by nobu (Nobuyoshi Nakada). No concrete applications yet, but they will come soon certainly. An extension library which wants to support optional hash may want to use this feature, and the feature itself is intended to be. Suppose that it wants to support 1.9.3 either right now, then it needs the way to tell if rb_scan_args() supports ':'. But the way is now only try_run, which can't work while cross compiling. It's too late after the 2.0.0 release. ---------------------------------------- Bug #7861: New macro for the new feature of rb_scan_args() https://bugs.ruby-lang.org/issues/7861#change-36642 Author: nobu (Nobuyoshi Nakada) Status: Assigned Priority: Normal Assignee: mame (Yusuke Endoh) Category: core Target version: 2.1.0 ruby -v: 2.0.0 =begin (({rb_scan_args()})) has new feature since 1.9.3, but there is no way to tell if it is available from extension libraries. So we have to provide a preprocessor symbol for it now. The name in my mind is (({HAVE_RB_SCAN_ARGS_OPTIONAL_HASH})) now. Any ideas? =end -- http://bugs.ruby-lang.org/