[MacRuby-devel] [macruby] #62: Wrong return value of Kernel#p

macruby ruby-noreply at macosforge.org
Sun May 25 17:40:26 PDT 2008


#62: Wrong return value of Kernel#p
-------------------------------+--------------------------------------------
 Reporter:  kreatix at gmail.com  |        Owner:  lsansonetti at apple.com
     Type:  defect             |       Status:  closed               
 Priority:  blocker            |    Milestone:                       
Component:  MacRuby            |   Resolution:  invalid              
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by lsansonetti at apple.com):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 Looks like this is a 1.9 intended change, sorry.

 {{{
 $ ruby -ve "x = p 42; p x"
 ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]
 42
 nil
 $ ./miniruby -ve "x = p 42; p x"
 MacRuby version 0.2 (ruby 1.9.0 2008-05-17) [universal-darwin9.0]
 42
 42
 $ ./miniruby19 -ve "x = p 42; p x"
 ruby 1.9.0 (2008-05-17 revision 16437) [i686-darwin9.0.0]
 42
 42
 }}}

-- 
Ticket URL: <http://ruby.macosforge.org/trac/ticket/62#comment:1>
macruby <http://ruby.macosforge.org/>


More information about the MacRuby-devel mailing list