Project

General

Profile

Feature #10342

Module#deprecate_constant

Added by nobu (Nobuyoshi Nakada) almost 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:65521]

Description

Proposal for Module#deprecate_constant, which marks constants referred by arguments as deprecated.

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


Related issues

Related to Ruby master - Misc #10339: normalize reference to Timeout::ErrorClosedActions
Has duplicate Ruby master - Feature #11398: deprecate constantsClosedActions

Also available in: Atom PDF