Luke Palmer wrote:

So, now that we have binding, is it possible to overload the
assignment operator?

Not really. The problem is that C<&infix:=> is really an operator on *containers*, not on *values*. So, in order to overload C<=>, you'll still need to define an appropriate C<STORE> method on the appropriate implementation class for the container. Whether C<STORE> can also be spelled C<&infix:=> is another question.



Does the assignment operator mean "value copy"
instead of "reference copy"?

The assignment operator means copy rhs's value into lhs's container.
The binding operator means copy (reference to) rhs's container into lhs's symbol table entry.


Damian




Reply via email to