From: Christian Kruse Date: 2002-08-07T19:58:39+09:00 Subject: problem with an iterator using yield Hi together, I've got a problem implementing an iterator. I'm writing a server application. In the server class I implemented a 'run' method, which is a loop waiting for a connection. Every incoming connection should be given to main program: def run loop do @sock.accept do |conn| yield conn end end end The main program does something like: app.run do |conn| print "got conn!\n" end Ok, fine as far. But when a connection arrives nothing happens. Is there anything wrong? Greetings, CK