Luke Palmer wrote:
class MyStream { has $.stream;
method :send_one ($item) { $.stream.send($item); }
method send ([EMAIL PROTECTED]) { .:send_one("BEGIN"); for @data { .:send_one($_); } .:send_one("END"); } }
I'll guess that you're pointing at
.:send_one($_);
Which supposedly uses "topic" to resolve .:send_one into $this.send_one. If that works, then I'm happy -- I like being able to control topic and $_ differently. But if C<for> changes topic, then what?
OUTER::.:send_one($_);
Yuck.
=Austin