Re: LValues, types, mutability

2009-06-09 Thread TSa
HaloO, John M. Dlugosz wrote: In your example above, @a is a read-only container, so the assignment would fail and this should be noticed at compile time. Fully agree. Now what if the parameter was declared as ref? The compiler gets passed the body of store17 and continues to the call.

LValues, types, mutability

2009-06-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-vts-systems.de |Perl 6| wrote: I like your idea to call the class that handles container access LValue. I have proposed the name AssignmentProxy elsewhere. Thanks. I'll quote that so it gets more exposure and hopefully will build a consensus or other feedback. :)