In a message dated Fri, 12 Apr 2002, Ashley Winters writes:
> Would it would be reasonable to have given default to the caller's topic?
>
> sub printRec {
>     given {
>         # $_ is now the caller's topic in this scope
>     }
> }
>
> Perhaps C<given caller.topic {}> would work as well.

Yes, something like that would be nice.  Of course, you could say, C<given
caller.MY{'$_'}>, but I think there's two separate things going on here:

1) There should probably be something in the syntax to allow for
   retopicalization of the up-scope topic

2) It may be useful to have some way to allow single-parameter blocks to
   take the up-scope topic as a first parameter.

Trey

Reply via email to