Roy Patrick Tan <rtan / vt.edu> writes:

> Yukihiro Matsumoto wrote:
> 
>  > Variables, blocks, control structures are not objects in Ruby.
> 
> Thanks for replying, but still have one question:
> 
> I don't understand why blocks are not objects in Ruby. The fact that you 
> can pass them as parameters, create instances of Proc objects, etc. 
> suggest that they *are* objects. Am I missing something here?

A block is a proto-object. My understanding is that for efficiency
reasons, blocks are not turned into objects immediately. However, they 
are turned into objects (of type Proc) using Proc.new, or when
assigned to an &xxx parameter in a method call.

Dave