Hi --

On Fri, 23 Jun 2006, Pete wrote:

> I guess it's because constants are _constant_ so they can not be re-assigned

$ ruby -e 'A=1; A=2; puts A'
-e:1: warning: already initialized constant A
2

:-)

The original example didn't involve constant re-assignment, though,
just assignment of two constants to the same object.


David

-- 
David A. Black (dblack / wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)

See what the readers are saying about "Ruby for Rails"!
http://www.rubypowerandlight.com/quotes