On Sat, 21 Jan 2017 10:07:46 -0800, sml...@gmail.com wrote: > The documentation > <https://docs.perl6.org/language/subscripts.html#method_ASSIGN-KEY> > makes it clear that ASSIGN-KEY is merely an optional performance > optimization that the compiler may or may not use instead of AT-KEY in > some cases. > > It will never be able to use it in *all* cases that involve > modification (think `$foo<bar>++`). > > If you want your type's subscripts to be mutable, the way subscripts > of built-in Hash objects are, you *must* return a container instead of > an immutable value from AT-KEY. The docs have an example > <https://docs.perl6.org/language/subscripts.html#Custom_type_example> > showing how to do this.
Agree with this; not a bug, and sounds like the documentation covers it decently too. Rejecting. Thanks, /jnthn