From: Marcin 'Qrczak' Kowalczyk Date: 2002-08-05T02:41:53+09:00 Subject: Re: Detecting when an instance variable is created/set Sun, 4 Aug 2002 22:32:44 +0900, Harry Ohlsen pisze: > When you run this, it prints "Setting @a to 456". The initial setting of @a > in initialize doesn't get caught. Ie, a=() doesn't seem to come into effect > until AFTER the instance variable has been created. It doesn't matter if it existed. @a=... just doesn't call a=(). Only obj.a=... does. Otherwise the body of a=() which contains @a=... would loop forever. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/