[MacRuby] #1026: IO::open give a warning when passed a block

MacRuby ruby-noreply at macosforge.org
Sun Dec 12 21:03:07 PST 2010


#1026: IO::open give a warning when passed a block
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |        Owner:  lsansonetti@…        
     Type:  defect                  |       Status:  closed               
 Priority:  major                   |    Milestone:  MacRuby 0.8          
Component:  MacRuby                 |   Resolution:  fixed                
 Keywords:                          |  
------------------------------------+---------------------------------------
Changes (by lsansonetti@…):

  * status:  reopened => closed
  * resolution:  => fixed


Comment:

 Looks like it behaves correctly?

 {{{
 $ ruby -ve "p IO.new {}"
 ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
 -e:1: warning: IO::new() does not take block; use IO::open() instead
 -e:1:in `initialize': wrong number of arguments (0 for 1) (ArgumentError)
         from -e:1:in `new'
         from -e:1
 }}}

 Note that IO.open has been fixed.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1026#comment:4>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list