Skip Menu |
Report information
Id: 128161
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Run time “SORRY!” when the range starts with whatever star (*...‘WAT’)
Download (untitled) / with headers
text/plain 189b
Code: say ‘Hello’; *...‘WAT’ Result: Hello ===SORRY!=== Method 'succ' not found for invocant of class 'Whatever' Well, I've always thought that ===SORRY!=== is compile time only.
Download (untitled) / with headers
text/plain 162b
Another similar case: zoffix@VirtualBox:~/CPANPRC/rakudo$ ./perl6 -e 'say 0, * ... "what"' ===SORRY!=== Method 'pred' not found for invocant of class 'Whatever'
Code:
say ‘Hello’; say *...‘WAT’

Result:
Hello
No such method 'succ' for invocant of type 'Whatever'. Did you mean 'sum'?
  in block <unit> at -e line 1


Code:
say 0, * ... "what"

Result:
No such method 'pred' for invocant of type 'Whatever'. Did you mean any of these?
    grep
    tree

  in block <unit> at -e line 1


I guess these errors make sense? Not quite sure why it calls .pred though.

On 2016-07-16 20:26:01, cpan@zoffix.com wrote:
Show quoted text
> Another similar case:
>
> zoffix@VirtualBox:~/CPANPRC/rakudo$ ./perl6 -e 'say 0, * ... "what"'
> ===SORRY!===
> Method 'pred' not found for invocant of class 'Whatever'


SORRY disappeared after https://github.com/rakudo/rakudo/commit/25e9fd76e85fabda20e263b6f87e27b0673f26e2

On 2017-10-08 01:21:27, alex.jakimenko@gmail.com wrote:
Show quoted text
> Code:
> say ‘Hello’; say *...‘WAT’
>
> Result:
> Hello
> No such method 'succ' for invocant of type 'Whatever'. Did you mean 'sum'?
> in block <unit> at -e line 1
>
>
> Code:
> say 0, * ... "what"
>
> Result:
> No such method 'pred' for invocant of type 'Whatever'. Did you mean any of
> these?
> grep
> tree
>
> in block <unit> at -e line 1
>
>
> I guess these errors make sense? Not quite sure why it calls .pred though.
>
> On 2016-07-16 20:26:01, cpan@zoffix.com wrote:
> > Another similar case:
> >
> > zoffix@VirtualBox:~/CPANPRC/rakudo$ ./perl6 -e 'say 0, * ... "what"'
> > ===SORRY!===
> > Method 'pred' not found for invocant of class 'Whatever'




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org