Indexing access for Lists and Maps considered harmful?

Mark Thornton mthornton at optrak.co.uk
Wed Jun 24 01:02:37 PDT 2009


Ted Neward wrote:
> preserved. Am I missing something here? If, as I think Neal already pointed
> out, we look at the expression
>
> a = b = c;
>
> The results of the intermediate expression "b = c" is "c", and therefore the
> results of the expression "a = (b = c)" is "c" as well. What are we arguing
>   
As I understand it, if c is a primitive and b is an object then the 
result of "b=c" is boxed(c). In addition

b = boxed(c);
a = boxed(c);

does not necessarily give the same result as

b = boxed(c);
a = b;

Regards,
Mark Thornton




More information about the coin-dev mailing list