From: Marc Heiler Date: 2008-07-27T04:54:38+09:00 Subject: Re: local constant > Read my verbiage again. Not trying to nitpick but I agree with Robert Dober about the formulation: >> If you called aidy() twice, the constant would re-assign, >> and it therefor would not be constant. > constants *can* be reassigned Especially since the error will happen no matter if the constant already existed, or did not yet exist. Ruby allows one to reassign constants freely, while only raising a warning. One can even go further and misuse constants as hash/array storage places and put stuff in or get it out again easily. Ruby seems to dislike this only if it is done within a method, by raising the "dynamic constant assignment" error. -- Posted via http://www.ruby-forum.com/.