From: Pit Capitain Date: 2006-05-11T19:53:50+09:00 Subject: Re: plz help with binding Sergey Volkov schrieb: > closure was created, but it was then shared between all class instances, > so Ara was absolutely right - we have to create new closure for each > individual instance, and this can not be implemented on class level (no > instances yet!); Sergey, maybe I don't understand what you mean by "implemented on class level", but as I've tried to show you with the code in my previous post you *can* implement such local variables at the class level. Here's the output, just in case you haven't tried: class C ... arr_meth :arm end ca = C.new; ca.arm << 10 cb = C.new; cb.arm << 20 p ca.arm # => [10] p cb.arm # => [20] p ca.arm.eql?( cb.arm ) # => false Regards, Pit