Hi --

On Sun, 28 Jan 2007, Brendan Inglese wrote:

> Hi,
>
> In message "Re: [ ruby-Bugs-8156 ] class variables and inheritance"
>    on Fri, 26 Jan 2007 08:05:47 +0900, <noreply / rubyforge.org> writes:
>
> |Initial Comment:
> |The unexpected behavior is shown in this script:
>
> It's no bug.  In 1.8 class variables are shared among subclasses.
> This behavior will change in 1.9 as you expected.
>
> How about instance variables, Are they shared among subclasses, and will
> this change in 1.9?

Instance variables belong to instances.  They have no concept of class
or subclass, just object.  Unless Matz has a very big surprise waiting
for us, this will not change in 1.9 :-)


David


-- 
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
    (See what readers are saying!  http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)