From: "ko1 (Koichi Sasada)" Date: 2012-06-26T05:22:03+09:00 Subject: [ruby-core:45851] [ruby-trunk - Feature #4326][Closed] Fiber should respond to call() and [] Issue #4326 has been updated by ko1 (Koichi Sasada). Description updated Status changed from Assigned to Closed I close this ticket. Please re-open it if anyone have any comment which we need to discuss again. ---------------------------------------- Feature #4326: Fiber should respond to call() and [] https://bugs.ruby-lang.org/issues/4326#change-27437 Author: tenderlovemaking (Aaron Patterson) Status: Closed Priority: Normal Assignee: ko1 (Koichi Sasada) Category: Target version: =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 -- http://bugs.ruby-lang.org/