Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Setting "this"
07-30-2002, 03:07 PM #1
- Join Date
- Jun 2002
- Thanked 0 Times in 0 Posts
Right now I'm just playing around (not that I ever do any work anyways ) with object prototypes. With the predefined objects you can change the value of "this" (so that the value of the object would be the value of this). I've had this error [invalid assignment left-hand side, line 8, char 7] before when I did this, and was just wondering if there was a way to work around it. Code is below.
07-30-2002, 07:50 PM #2
To quote the ECMA-262 3rd edition spec (page 39, section 10.1.7):
"The this value associated with an execution context is immutable."
Immutable is fancy term often used in Python meaning something can't be changed in place, or is constant.