From: Dave Thomas Date: 2001-03-23T00:47:11+09:00 Subject: [ruby-talk:13078] Re: Questions about ruby Roy Patrick Tan 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