[perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-07-21 Thread jn...@jnthn.net via RT
On Fri Mar 25 18:10:03 2016, t...@cpan.org wrote: > Example: > > % perl6 -e 'sub MAIN ($x where { $^x > 1 } ) { say "big" }' 4 > big > % perl6 -e 'sub MAIN ($x where { $^x > 1 } ) { say "big" }' 0 > Usage: > -e '...' > % perl6 -e 'unit sub MAIN ($x where { $^x > 1 } ); say "big"' 4 > ===SORRY

[perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-07-21 Thread jn...@jnthn.net via RT
On Fri Mar 25 18:10:03 2016, t...@cpan.org wrote: > Example: > > % perl6 -e 'sub MAIN ($x where { $^x > 1 } ) { say "big" }' 4 > big > % perl6 -e 'sub MAIN ($x where { $^x > 1 } ) { say "big" }' 0 > Usage: > -e '...' > % perl6 -e 'unit sub MAIN ($x where { $^x > 1 } ); say "big"' 4 > ===SORRY

Re: [perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-03-29 Thread Trey Ethan Harris
It's not only in -e. I just used that for my example. A file with a unit sub MAIN exhibits the same issue. On Mon, Mar 28, 2016, 17:39 Elizabeth Mattijsen via RT < perl6-bugs-follo...@perl.org> wrote: > Perhaps we should disallow “unit” with -e? > > > On 28 Mar 2016, at 20:18, Trey Ethan Harris

Re: [perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-03-28 Thread Elizabeth Mattijsen via RT
Perhaps we should disallow “unit” with -e? > On 28 Mar 2016, at 20:18, Trey Ethan Harris wrote: > > No, see S06-routines.pod: > > As with module and class declarations, a sub declared > with the C declarator (and ending in semicolon) is allowed at the > outermost > file scope if it

Re: [perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-03-28 Thread Elizabeth Mattijsen
Perhaps we should disallow “unit” with -e? > On 28 Mar 2016, at 20:18, Trey Ethan Harris wrote: > > No, see S06-routines.pod: > > As with module and class declarations, a sub declared > with the C declarator (and ending in semicolon) is allowed at the > outermost > file scope if it

Re: [perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-03-28 Thread Trey Ethan Harris
No, see S06-routines.pod: As with module and class declarations, a sub declared with the C declarator (and ending in semicolon) is allowed at the outermost file scope if it is the first such declaration, in which case the rest of the file is the body: unit sub MAIN ($direc

Re: [perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-03-26 Thread Elizabeth Mattijsen via RT
unit sub ??? I thought that unit was only supposed to be followed by a package like declaration?? > On 26 Mar 2016, at 02:10, Trey Harris (via RT) > wrote: > > # New Ticket Created by Trey Harris > # Please include the string: [perl #127785] > # in the subject line of all future correspon

Re: [perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-03-26 Thread Elizabeth Mattijsen
unit sub ??? I thought that unit was only supposed to be followed by a package like declaration?? > On 26 Mar 2016, at 02:10, Trey Harris (via RT) > wrote: > > # New Ticket Created by Trey Harris > # Please include the string: [perl #127785] > # in the subject line of all future correspon

[perl #127785] where constraint in blockless declaration causes spurious gobbling error

2016-03-25 Thread via RT
# New Ticket Created by Trey Harris # Please include the string: [perl #127785] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127785 > Example: % perl6 -e 'sub MAIN ($x where { $^x > 1 } ) { say "big" }' 4 big % perl6 -e 'su