yield works, but no block given 
Author Message
 yield works, but no block given

J> Is yield psychic?

 Yes,

 block_given? return true if a block was given to the current frame.

 yield look in the current frame, and the previous frame.

Guy Decoux



Thu, 22 Apr 2004 17:54:38 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. yield works, but no block given

2. block.call vs. yield

3. block , yield and proc?

4. "yield called out of block"

5. block/yield puzzle

6. Creating a method given a block

7. Creating a method given a block

8. Explicitly giving block/proc binding?

9. std blocks vs blocks+cache ( was: block behavior)

10. Works OK except when no path is given

11. Common statement does not work with gfortran, but g95 gives the correct answer

12. Block formatting script not working

 

 
Powered by phpBB® Forum Software