From: rob@... Date: 2017-06-04T21:44:35+00:00 Subject: [ruby-core:81570] [Ruby trunk Feature#12739] deprecate_constant :Fixnum, :Bignum Issue #12739 has been updated by robertgleeson (Robert Gleeson). znz (Kazuhiro NISHIYAMA) wrote: > How about `class Object; deprecate_constant :Fixnum, :Bignum; end`? > > * naruse supports: https://twitter.com/nalsh/status/773800491671101441 > * akr objects: https://twitter.com/tanaka_akr/status/773817391218249729 > > I don't mind either way. > Do you have any comment about it? It would be nice to have `constant_deprecated?`. To avoid all of these warnings while supporting <2.4 and >=2.4 i track what constants are deprecated in an array, and then avoid using them or not by checking the array at runtime. It's bit of a pain.. ---------------------------------------- Feature #12739: deprecate_constant :Fixnum, :Bignum https://bugs.ruby-lang.org/issues/12739#change-65272 * Author: znz (Kazuhiro NISHIYAMA) * Status: Closed * Priority: Normal * Assignee: * Target version: ---------------------------------------- How about `class Object; deprecate_constant :Fixnum, :Bignum; end`? * naruse supports: https://twitter.com/nalsh/status/773800491671101441 * akr objects: https://twitter.com/tanaka_akr/status/773817391218249729 I don't mind either way. Do you have any comment about it? -- https://bugs.ruby-lang.org/ Unsubscribe: