Projects

Ticket #183 (closed defect: duplicate)

Opened 3 years ago

Last modified 14 months ago

loop/next seg faulting

Reported by: drnicwilliams@… Owned by: lsansonetti@…
Priority: minor Milestone:
Component: MacRuby Keywords: loop next
Cc: drnicwilliams@…

Description

The following should work:

@@@ short_enum = [1, 2, 3].to_enum long_enum = ('a'..'z').to_enum loop do

puts "#{short_enum.next} #{long_enum.next}"

end @@@

Example comes from  http://slideshow.rubyforge.org/ruby19.html slide 37

It currently segfaults.

Change History

Changed 3 years ago by drnicwilliams@…

short_enum = [1, 2, 3].to_enum long_enum = ('a'..'z').to_enum loop do

    puts "#{short_enum.next} #{long_enum.next}"

end

my trac-fu is weak

Changed 3 years ago by drnicwilliams@…

  • cc drnicwilliams@… added

Cc Me!

Changed 14 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to duplicate

Dup of #817.

Note: See TracTickets for help on using tickets.