From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Ben Somers Newsgroups: gmane.comp.lang.ruby.raindrops.general Subject: Re: [PATCH] middleware/proxy: favor __send__ for method dispatch Date: Fri, 8 Jun 2012 11:11:43 -0700 Message-ID: References: <20120607215534.GA30776@dcvr.yhbt.net> <20120607215534.GA30776@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339179154 16135 80.91.229.3 (8 Jun 2012 18:12:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 18:12:34 +0000 (UTC) To: raindrops@librelist.org Original-X-From: raindrops@librelist.org Fri Jun 08 20:12:33 2012 Return-path: Envelope-to: gclrrg-raindrops@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: raindrops@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.raindrops.general:86 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sd3fj-0002xO-00 for gclrrg-raindrops@m.gmane.org; Fri, 08 Jun 2012 20:12:31 +0200 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id D0E0021DDF7 for ; Fri, 8 Jun 2012 18:20:36 +0000 (UTC) > "send" is more likely to be overridden in subclasses whereas > the Ruby runtime (at least 1.9.3) will warn loudly if any user > code (re)defines the "__send__" method. This seems eminently sensible and IIRC is the same way Rack does it. Not sure why I changed it when making the original commit, I would suspect my own foolishness.