[MacRuby-devel] [MacRuby] #644: String.include? bug

2010-04-01 Thread MacRuby
#644: String.include? bug
--+-
 Reporter:  jankass...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:  MacRuby 0.5  
Component:  MacRuby   |Keywords:   
--+-
 "foo".include?("") returns false, but should return true for any string.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #644: String.include? bug

2010-04-01 Thread MacRuby
#644: String.include? bug
--+-
 Reporter:  jankass...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:  MacRuby 0.5  
Component:  MacRuby   |Keywords:   
--+-

Comment(by lsansone...@…):

 What version of MacRuby do you run? This seems to work on trunk as of
 r3901:

 {{{
 $ ./miniruby -e "p 'foo'.include?('')"
 true
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #643: Yield fails when captured in a block that gets called

2010-04-01 Thread MacRuby
#643: Yield fails when captured in a block that gets called
---+
 Reporter:  tpit...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  minor  |   Milestone:   
Component:  MacRuby|Keywords:  block, yield, call   
---+

Comment(by lsansone...@…):

 Indeed:

 {{{
 $ ./miniruby -e "def foo(&b); b.call; end; def bar; foo { yield }; end;
 bar { p 42 }"
 /Users/lrz/src/macruby-trunk/-e:1:in `': no block given
 (LocalJumpError)
 }}}

 Note that the bug does not seem to happen when the block is passed inline
 (so this can be used as a temporary workaround):

 {{{
 $ ./miniruby -e "def foo; yield; end; def bar; foo { yield }; end; bar { p
 42 }"
 42
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #644: String.include? bug

2010-04-01 Thread MacRuby
#644: String.include? bug
--+-
 Reporter:  jankass...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:  MacRuby 0.5  
Component:  MacRuby   |Keywords:   
--+-

Comment(by jankass...@…):

 The 0.5 installer version:
 {{{
 ~$ macruby --version
 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
 ~$ macruby -e "p 'foo'.include?('')"
 false
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #644: String.include? bug

2010-04-01 Thread MacRuby
#644: String.include? bug
--+-
 Reporter:  jankass...@…  |Owner:  lsansone...@…
 Type:  defect|   Status:  closed   
 Priority:  blocker   |Milestone:  MacRuby 0.6  
Component:  MacRuby   |   Resolution:  fixed
 Keywords:|  
--+-
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  MacRuby 0.5 => MacRuby 0.6


Comment:

 Ah, then it has been fixed in trunk/0.6 :-) Thanks for the report anyway.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel