[前][次][番号順一覧][スレッド一覧]

ruby-changes:50709

From: nobu <ko1@a...>
Date: Thu, 22 Mar 2018 00:46:20 +0900 (JST)
Subject: [ruby-changes:50709] nobu:r62878 (trunk): Remove outdated proc.c binding comment.

nobu	2018-03-22 00:46:15 +0900 (Thu, 22 Mar 2018)

  New Revision: 62878

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62878

  Log:
    Remove outdated proc.c binding comment.
    
    Passing a proc as the second argument to eval is no longer supported.
    [Fix GH-1843]
    
    From: Tieg Zaharia <tieg.zaharia@g...>

  Modified files:
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 62877)
+++ proc.c	(revision 62878)
@@ -2789,9 +2789,7 @@ env_clone(const rb_env_t *env, const rb_ https://github.com/ruby/ruby/blob/trunk/proc.c#L2789
  *  call-seq:
  *     prc.binding    -> binding
  *
- *  Returns the binding associated with <i>prc</i>. Note that
- *  <code>Kernel#eval</code> accepts either a <code>Proc</code> or a
- *  <code>Binding</code> object as its second parameter.
+ *  Returns the binding associated with <i>prc</i>.
  *
  *     def fred(param)
  *       proc {}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]