Backport #7861
closedNew macro for the new feature of rb_scan_args()
Description
=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
Updated by mame (Yusuke Endoh) almost 12 years ago
- Priority changed from 7 to Normal
- Target version changed from 2.0.0 to 2.1.0
nobu (Nobuyoshi Nakada) wrote:
(({rb_scan_args()})) has new feature since 1.9.3, but there is no way to tell if it is available from extension libraries.
Do you know any concrete application that is in urgent need of the information?
--
Yusuke Endoh mame@tsg.ne.jp
Updated by Hanmac (Hans Mackowiak) over 11 years ago
i for sample would like to know how to use the Optional Hash (and with 2.0 the default hash parameters) with rb_scan_args
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
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.
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r39335.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
ruby.h: HAVE_RB_SCAN_ARGS_OPTIONAL_HASH
- include/ruby/ruby.h (HAVE_RB_SCAN_ARGS_OPTIONAL_HASH): for
rb_scan_args() optional hash feature. [Bug #7861]
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Tracker changed from Bug to Backport
- Project changed from Ruby master to Backport200
- Category deleted (
core) - Status changed from Closed to Assigned
- Target version deleted (
2.1.0)
Updated by mame (Yusuke Endoh) over 11 years ago
- Assignee changed from mame (Yusuke Endoh) to nobu (Nobuyoshi Nakada)
Looks benign. Okay, go ahead. Sorry for late reply.
--
Yusuke Endoh mame@tsg.ne.jp
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Status changed from Assigned to Closed
This issue was solved with changeset r39426.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 39335:
* include/ruby/ruby.h (HAVE_RB_SCAN_ARGS_OPTIONAL_HASH): for
rb_scan_args() optional hash feature. [Bug #7861]