From: David Garamond Date: 2002-08-26T19:11:43+09:00 Subject: Re: warning modifying constant & 'global constant' Yukihiro Matsumoto wrote: > |2. is there a beast called a 'global constant'? i tried defining $Foo > |and ruby allows me to rebind $Foo later. > > No. $Foo is a plain global variable. thanks matz. i want to protect some global variables without having to resort to setting $SAFE to 4. can we use some proxying mechanism, or override an object method to trap assignment/binding? freeze() only protect the object value, and does not prevent rebinding. -- dave