[ruby-core:75252] [Ruby trunk Feature#10342][Closed] Module#deprecate_constant

From: nobu@...
Date: 2016-04-29 14:27:02 UTC
List: ruby-core #75252
Issue #10342 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed

----------------------------------------
Feature #10342: Module#deprecate_constant
https://bugs.ruby-lang.org/issues/10342#change-58383

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
Proposal for `Module#deprecate_constant`, which marks constants referred by arguments as deprecated.

~~~ruby
class C
  FOO = 1
  deprecate_constant :FOO
end
C::FOO #=> warning: constant C::FOO is deprecated
~~~

https://github.com/nobu/ruby/compare/Module%23deprecate_constant



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

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next