From: Lionel Thiry Date: 2005-03-15T23:00:50+09:00 Subject: Re: [newby] class variables and class instance variable? ts wrote: >>>>>>"L" == Lionel Thiry writes: > > > L> It still gives the same output: > L> 0 cats, 0 dogs, 0 animals > L> a new dog > L> a new dog > L> 2 cats, 2 dogs, 2 animals > L> a new cat > L> a new cat > L> a new cat > L> 5 cats, 5 dogs, 5 animals > > with 1.9.0 > > 0 cats, 0 dogs, 0 animals > a new dog > a new dog > 2 cats, 2 dogs, 2 animals > a new cat > a new cat > a new cat > 5 cats, 5 dogs, 5 animals > > Thanks a lot! :) I expected it would give an error or the same output as the original code when executed in ruby 1.9.0. Would those modifications "correct" its behavior? (I hope I'm not too annoying asking to test code for me) class Dog