From: usa@garbagecollect.jp
To: ruby-core@ruby-lang.org
Subject: [ruby-core:69799] [Ruby trunk - Bug #11046] __callee__ returns incorrect method name in orphan proc
Date: Tue, 30 Jun 2015 04:07:03 +0000 [thread overview]
Message-ID: <redmine.journal-53193.20150630040702.53138acabf111fb5@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11046.20150407212852@ruby-lang.org
Issue #11046 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
Bug #11046: __callee__ returns incorrect method name in orphan proc
https://bugs.ruby-lang.org/issues/11046#change-53193
* Author: Koichi Sasada
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: ruby 2.3.0dev (2015-04-07 trunk 50171) [i386-mswin32_110]
* Backport: 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED
----------------------------------------
__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/
prev parent reply other threads:[~2015-06-30 3:41 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 ` [ruby-core:68789] [Ruby trunk - Bug #11046] [Open] __callee__ returns incorrect method name in orphan proc ko1
2015-06-30 4:07 ` usa [this message]
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.journal-53193.20150630040702.53138acabf111fb5@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).