From: ruby-core@... Date: 2014-10-08T17:27:44+00:00 Subject: [ruby-core:65530] [ruby-trunk - Feature #10342] Module#deprecate_constant Issue #10342 has been updated by Marc-Andre Lafortune. The same effect can already be achieved using `autoload`, right? ---------------------------------------- Feature #10342: Module#deprecate_constant https://bugs.ruby-lang.org/issues/10342#change-49302 * Author: Nobuyoshi Nakada * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto * Category: core * Target version: current: 2.2.0 ---------------------------------------- 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/