-control.pod
Log Message:
---
document that forward goto requires quotes
max.
On Mon, Jan 07, 2008 at 08:22:34PM +0100, herbert breunung wrote:
> if we take TimTowtdi strictly, the anser would be yes :)
Just as in Perl 5, you can say "goto $label", with no guarantees
on efficiency.
> sorry for nagging but my question about existence of ($min, $max) =
>
if we take TimTowtdi strictly, the anser would be yes :)
sorry for nagging but my question about existence of ($min, $max) =
@array.minmax also seems vaporized.
cheers
herbert
Just added the following to S04:
=head1 The goto statement
In addition to C, C, and C, Perl 6 also supports
C. As with ordinary loop controls, the label is searched for
first lexically within the current subroutine, then dynamically outside
of it. Unlike with loop controls
nt in (single)methods?
Thus .method *always* expands to $?SELF which of course isn't available
outside of method definitions.
This postfix colon call syntax has to go with a new syntax for landing sites
into code positions like we have goto for jumping out. I proposed to call
the goto partner
ue of
the last statement, you return nothing. And with no warning. And that
helps 'last', but not the other three. 'next' is nonsensical, 'redo' even
more so, and a 'goto' that doesn't just doesn't seem right.
3) It's consistent. Th