Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A12: Mutating Methods and hyperoperators

8 views
Skip to first unread message

Matthew Walton

unread,
Apr 19, 2004, 5:01:45 AM4/19/04
to perl6-l...@perl.org
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

Luke Palmer

unread,
Apr 19, 2004, 5:49:54 AM4/19/04
to Matthew Walton, perl6-l...@perl.org
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

Matthew Walton

unread,
Apr 19, 2004, 6:06:24 AM4/19/04
to Luke Palmer, perl6-l...@perl.org
Luke Palmer wrote:

> Matthew Walton writes:
>>But can I do
>>
>>@things».=method();
>
>
> Of course.

Excellent. Thankyou.

> Not this time :-)

Next time then, probably.

0 new messages