Structs

Waldemar Horwat waldemar at google.com
Wed Jun 2 17:16:31 PDT 2010


Oliver Hunt wrote:
> If b is not an alias to /a[i]/ then the code
> 
> a[i].x += 1;
> 
> Could not modify /a[i]/ itself, effectively we've created an immutable type.

That does not logically follow.  See my previous message for why.

    Waldemar


More information about the es-discuss mailing list