From: Robert Klemme Date: 2009-12-04T19:26:03+09:00 Subject: Re: How to make net-ping thread safe? 2009/12/4 Leo Stern : > Jean-François Trân wrote: >> 2008/3/16, Laurent Julliard : >> >>>  Your recommendation is to turn the sequence number into a class >>> variable so shouldn't the sequence number really be named @@seq >>> rather than @seq if we want the sequence number to be unique across >>> multiple instances of ICMP objects? >> >> If I am correct, Joel is using a ICMP class instance variable instead >> of a class variable. So in the patch, @seq is not a var of an ICMP >> object but an instance variable of ICMP class (as an object :) ). > > Why? Because @@class variables are broken. You can find numerous threads about the topic here. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/