an lvalue method just exposes a variable (ie the storage for) to the assignment, it runs b4 the assignment is done.
It gets no chance to validate the RHS, thus you could accidentally do:
$person->age = -1; $person->name = '2/22/01'; $person->ssn = 'capt. bob';
In reply to Re: $foo->bar = 14; by jimc
in thread $foo->bar = 14; by Juerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |