You can make your last example work with `loop` by just adding a `break` at the end of the loop body. I don't think that warrants a new method.jwille (Jens Wille)
Associated libxml-ruby issue: [#115](https://github.com/xml4r/libxml-ruby/issues/115). Related libxml-ruby issue: [#109](https://github.com/xml4r/libxml-ruby/issues/109) (executing `test.rb` via `IO.popen` exhibits the same problem). jwille (Jens Wille)
I don't have time to investigate further right now, but the problem is that the output of `prova5.rb` gets buffered. The `find` and everything else executes just fine. You can work around this problem by adding `$stdout.sync = true` at t...jwille (Jens Wille)
> but it would be difficult to tell which regexes are intended to be the same i'm not sure i understand. how is ~~~ruby def r1; /ab/f; end def r2; /ab/f; end ~~~ different from ~~~ruby def s1; 'ab'f; end def s2; 'ab'f; e...jwille (Jens Wille)
besides regexps being frozen, there might still be a use case for regexp literals that would only be allocated once: ~~~ruby def r1; /ab/; end; r1.object_id #=> 70043421664620 def r2; /ab/; end; r2.object_id #=> 70043421398060 ...jwille (Jens Wille)
=begin why not simply return an Enumerator from `foreach`? class CSV def self.foreach(path, options = Hash.new, &block) if block_given? open(path, options) do |csv| csv.each(&block) end ...jwille (Jens Wille)
Eregon (Benoit Daloze) [2012-06-25 12:33]: > But at the same time, this is clearly a specialization of > Hash.new with a block, which loses some flexibility (you can not > use the key for example). why not? you can yield the key...jwille (Jens Wille)
Luis, that's awesome. I was literally saying to myself the RubyInstaller guys *must* be providing some easy way to do this, I just wasn't able to find anything from the homepage. So thanks! I might give it a try some time. Though I won't...jwille (Jens Wille)
Unfortunately, I find myself unable to compile Ruby on Windows. I'm not familiar with developing on that platform and all the instructions I could find were either outdated or rather complicated. So I simply trust that it's fixed by r336...jwille (Jens Wille)