From: Tommy Nordgren Date: 2008-10-17T16:41:43+09:00 Subject: Re: instance counter --Apple-Mail-6--1038495054 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Oct 17, 2008, at 7:19 AM, Mike Gold wrote: > Tommy Nordgren wrote: >> def Bob.count >> return @@count >> end > > I avoid @@. Why should metaclasses have a different syntax? @@ also > has different scoping rules which I find vexing. Be consistent, I > say. > An instance counter have to be assosiated with the class itself, and not an instance. How else can it count the total number of allocated instances? You plainly did not read the original posters message. > ------------------------------------------------------ "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" tommy.nordgren@comhem.se --Apple-Mail-6--1038495054--