Project

General

Profile

Feature #4326

Updated by ko1 (Koichi Sasada) over 12 years ago

=begin 
  
  Fibers are considered to be coroutines.    Knuth says "Subroutines are special cases of ... coroutines".    This makes sense to me. 
 
  Method, Proc, and lambda respond to `call` and `[]`.    If Fiber also responded to `call` and `[]`, we could use coroutines in places where we use lambdas, procs, and methods. 
 
  I've attached a patch that implements the two methods. 
 
 =end 
 

Back