From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_PASS,T_DKIM_INVALID, T_RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 4A9F320D09 for ; Sun, 4 Jun 2017 21:44:47 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 35B2E12078B; Mon, 5 Jun 2017 06:44:44 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 07B3D120787 for ; Mon, 5 Jun 2017 06:44:41 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=/1NDqDdcszXWp1FX8k7qZAcyMxg=; b=J4n7t+VlTnILZASge/ mZXkrr0giV9nxlnG73h9WBKk6S754E+RTEj1zVvxSWoc6krokbpPVE7SFZEi37Ir 2MzPVpB3oMqHBl5C5+YwTy7r+4kTUZRXhkW/qQ4HljgDEc5QzyGWozOttn6d2m8V JbfY0XRGUNPeTDcWpg1b/wen8= Received: by filter0850p1mdw1.sendgrid.net with SMTP id filter0850p1mdw1-6421-59347F43-31 2017-06-04 21:44:35.848352509 +0000 UTC Received: from herokuapp.com (ec2-54-161-238-60.compute-1.amazonaws.com [54.161.238.60]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id U4U2wDexRDyYbIcWUABUNw for ; Sun, 04 Jun 2017 21:44:35.806 +0000 (UTC) Date: Sun, 04 Jun 2017 21:44:35 +0000 From: rob@flowof.info To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56600 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 12739 X-Redmine-Issue-Author: znz X-Redmine-Sender: robertgleeson 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS4YH4uy0oIf3+ql5XlPRmHR0grXx2bW2q3v7U aLUM4aYBxbPGsjnBQde6CELT0FKXbmDOLwWUh9v7C8yius+eCS7/cMy3xUUwV5qVdby2vtpVC+yNWt oziuTM/fz/7dGz4cpCTdHmSVBt1iw0HbQOv+ X-ML-Name: ruby-core X-Mail-Count: 81570 Subject: [ruby-core:81570] [Ruby trunk Feature#12739] deprecate_constant :Fixnum, :Bignum 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/