Feature #8632

Remove warnings for Refinements

Added by Shugo Maeda 9 months ago. Updated 9 months ago.

[ruby-core:55993]
Status:Closed
Priority:Normal
Assignee:Shugo Maeda
Category:core
Target version:2.1.0

Description

Can I remove the following warning for Refinements?

$ ruby -ve 'module M; refine(Fixnum) {}; end'
ruby 2.1.0dev (2013-07-01 trunk 41717) [i686-linux]
-e:1: warning: Refinements are experimental, and the behavior may change in future versions of Ruby!

Associated revisions

Revision 42272
Added by Shugo Maeda 9 months ago

  • eval.c (rbmodrefine, modusing, topusing): don't show
    warnings because Refinements are no longer experimental.
    [Feature #8632]

  • test/ruby/test_refinement.rb: related test.

  • NEWS: fixes for the above change.

History

#1 Updated by Yukihiro Matsumoto 9 months ago

  • Assignee changed from Yukihiro Matsumoto to Shugo Maeda

I agree. Remove warning.

Matz.

#2 Updated by Shugo Maeda 9 months ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r42272.
Shugo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • eval.c (rbmodrefine, modusing, topusing): don't show
    warnings because Refinements are no longer experimental.
    [Feature #8632]

  • test/ruby/test_refinement.rb: related test.

  • NEWS: fixes for the above change.

Also available in: Atom PDF