On Mon, 2008-08-18 at 12:16 -0700, Andrew Lentvorski wrote: > This doesn't seem to be able to be done in Python. > > Now C/C++ can do this via either a const pointer to non-const data (C) > or by overloading with assignment operator of a class (C++). However, > it gets "lucky" simply because that function is built into the language. > > > So my question: What other languages *can* pull this off?
So basically, you want an immutable reference variable. Hmmm... Java can pull this off with "final". --Chris -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
