Re: A12: Mutating Methods and hyperoperators
Luke Palmer wrote: Matthew Walton writes: But can I do @things».=method(); Of course. Excellent. Thankyou. Not this time :-) Next time then, probably.
Re: A12: Mutating Methods and hyperoperators
Matthew Walton writes: > I know these were discussed to death not that long ago, but reading > Apocalypse 12 I had a query I couldn't remember if it had been covered > before or not, and I certainly don't recall seeing it in the Apocalypse, > although I've not read the entire thing with as much attention as I > might like yet (it's great work though). > > So, simple query. I know I can do > > @thingsÂ.method(); > > But can I do > > @thingsÂ.=method(); Of course. > which would presumably be the same as > > map { .=method() } @things; > > And if I can't do it, why not? I think I should be able to do it, but > it's entirely possible I've missed something, because I usually have. Not this time :-) Luke
A12: Mutating Methods and hyperoperators
I know these were discussed to death not that long ago, but reading Apocalypse 12 I had a query I couldn't remember if it had been covered before or not, and I certainly don't recall seeing it in the Apocalypse, although I've not read the entire thing with as much attention as I might like yet (it's great work though). So, simple query. I know I can do @things».method(); But can I do @things».=method(); which would presumably be the same as map { .=method() } @things; And if I can't do it, why not? I think I should be able to do it, but it's entirely possible I've missed something, because I usually have. Thanks Matthew