Mark J. Reed wrote:

> My understanding is that the P6 way to do that is to return a Capture
> containing the desired return values (which can lazily do things only
> when accessed) in the appropriate slots.

Return a Capture or a more heavily overloaded object, depending on how
fine a degree of context discrimination you need.

Further to that idea, I'm actually planning to attempt to port
Contextual::Return to Perl 6 in the next few weeks.


Reply via email to