ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: ko1@atdot.net
To: ruby-core@ruby-lang.org
Subject: [ruby-core:68789] [Ruby trunk - Bug #11046] [Open] __callee__ returns incorrect method name in orphan proc
Date: Tue, 07 Apr 2015 21:28:53 +0000	[thread overview]
Message-ID: <redmine.issue-11046.20150407212852.5d4d141f45b26078@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11046.20150407212852@ruby-lang.org

Issue #11046 has been reported by Koichi Sasada.

----------------------------------------
Bug #11046: __callee__ returns incorrect method name in orphan proc
https://bugs.ruby-lang.org/issues/11046

* Author: Koichi Sasada
* Status: Open
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: ruby 2.3.0dev (2015-04-07 trunk 50171) [i386-mswin32_110]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
__callee__ returns incorrect method name in orphan proc.

```ruby
def foo
  1.times{
    p __callee__
  }
  proc{
    __callee__
  }
end

alias bar foo

pr = bar #=> :bar
GC.start
p pr.call #=> :foo
```

Reproduce on 2.0 to 2.3dev.



-- 
https://bugs.ruby-lang.org/

       reply	other threads:[~2015-04-07 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-11046.20150407212852@ruby-lang.org>
2015-04-07 21:28 ` ko1 [this message]
2015-06-30  4:07 ` [ruby-core:69799] [Ruby trunk - Bug #11046] __callee__ returns incorrect method name in orphan proc usa

Reply instructions:

You may reply publicly 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-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.issue-11046.20150407212852.5d4d141f45b26078@ruby-lang.org \
    --to=ruby-core@ruby-lang.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).