From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 9280619C0535 for ; Tue, 1 Dec 2015 05:42:12 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id BED2AB5D853 for ; Tue, 1 Dec 2015 06:13:32 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id C51F118CC7E2 for ; Tue, 1 Dec 2015 06:13:32 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 626191204DF; Tue, 1 Dec 2015 06:13:30 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id B0D9E1204D0 for ; Tue, 1 Dec 2015 06:13:27 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=Cu2P3jpJ2tVXeBEqNcBo8QtABUo=; b=ofm+mK0eEv5F3G6Jw2 JEhazZzJOlzf0ohwkNAHjoIxBs+YdPDGwYetuzcTOG22k08S51jvsaZR8cUtTTYa IsMWOlFS0UKNBhGEYGBYgXgP+PUBa+zE9n7zQqeGQjxg6lp3J0csCUsVfLGT6QT/ uT2Hyvc5CSmHW0EoetR37bXHA= Received: by filter0490p1mdw1.sendgrid.net with SMTP id filter0490p1mdw1.4332.565CBBF27 2015-11-30 21:13:22.081591243 +0000 UTC Received: from herokuapp.com (ec2-23-22-255-108.compute-1.amazonaws.com [23.22.255.108]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id bKM5nu2tRCqJ2DCMFgsUxA Mon, 30 Nov 2015 21:13:22.000 +0000 (UTC) Date: Mon, 30 Nov 2015 21:13:21 +0000 From: jeanphilippe.doyle@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46451 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11754 X-Redmine-Issue-Author: printercu X-Redmine-Sender: j15e X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS79NbPYEtW2/Dt7mMExwhMI5C6Y4+4nBWzpSn DS2bqepyDeRpmiTo01269PXFleYPyBym7grTKGfHBox4dvXa9PczVtdfYAd4eYR8fBzUp+W6/yoVrI eqVUb1b3B1GXz7I= X-ML-Name: ruby-core X-Mail-Count: 71764 Subject: [ruby-core:71764] [Ruby trunk - Bug #11754] Visibility scope is kept after lexical scope is closed X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11754 has been updated by Jean-Philippe Doyle. ruby -v set to ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-darwin13] To provide some context, this creates issues with two gems I am using that have dynamically defined methods (that now seems to be incorrectly private in 2.3.0preview1) : - paranoia (`really_destroy!` method defined in https://github.com/rubysherpas/paranoia/blob/rails4/lib/paranoia.rb#L185-L190) - money (all methods defined in https://github.com/RubyMoney/money/blob/master/lib/money/money/formatting.rb#L4-L14) ---------------------------------------- Bug #11754: Visibility scope is kept after lexical scope is closed https://bugs.ruby-lang.org/issues/11754#change-55173 * Author: Max Melentiev * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-darwin13] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ~~~ module X def self.test_def def x; end; end private def y; end; end X.test_def X.instance_methods ~~~ In 2.2 it returns [:x], in 2.3-preview1 it returns empty array. Is it ok? -- https://bugs.ruby-lang.org/