(2012/10/02 8:22), SASADA Koichi wrote:
> 
> One idea is:
> 
>   - Define: Thread#[] -> Thred#current_fiber#[]
>   - Add: Thread#truly_thread_local_get(key)
>     and  Thread#truly_thread_local_set(key, val)
> 
> (of course, truly_... is temporal name)

Another idea:

Add an option to derive Fiber local storage at a Fiber creation.

  For example:

    Thread[:foo] = :bar
    Fiber.new(derive_fiber_local_storage: true) do
      Thread[:foo] #=> :bar
    end

And use Fiber in enumerator with this option true.

-- 
// SASADA Koichi at atdot dot net