From: Eric Wong <email@example.com> To: Pat Allan <firstname.lastname@example.org> Cc: email@example.com Subject: Re: [PATCH] Update respond_to? calls for second argument. Date: Sun, 21 May 2017 04:54:35 +0000 Message-ID: <20170521045435.GA17029@untitled> (raw) In-Reply-To: <20170521043848.GA25750@starla> Actually, there's also a rb_obj_respond_to API in Ruby 1.9+ which could be used. It's declared in ruby/intern.h which is a grey area as far as continued API support goes, and it's not documented in doc/extension.rdoc, either. However, there is a rubyspec CAPI test for it; and I'm not sure the two-arg form of respond_to? is actually used by real Rack servers. Sidenote: rb_funcall* functions are always a bit slower since they need to go through method lookup before dispatch, and can't benefit from inline method caching, only global method caching.
next prev parent reply index Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-05-21 4:01 Pat Allan 2017-05-21 4:38 ` Eric Wong 2017-05-21 4:54 ` Eric Wong [this message] 2017-05-21 5:10 ` Pat Allan 2017-05-21 5:47 ` [PATCH v2] " Eric Wong
Reply instructions: You may reply publically to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://bogomips.org/clogger/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170521045435.GA17029@untitled \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
clogger RubyGem user+dev discussion/patches/pulls/bugs/help Archives are clonable: git clone --mirror https://bogomips.org/clogger-public git clone --mirror http://ou63pmih66umazou.onion/clogger-public Newsgroups are available over NNTP: nntp://news.public-inbox.org/inbox.comp.lang.ruby.clogger nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.clogger note: .onion URLs require Tor: https://www.torproject.org/ AGPL code for this site: git clone https://public-inbox.org/ public-inbox