Raku / old-issue-tracker

Tickets from RT
https://github.com/Raku/old-issue-tracker/issues
2 stars 1 forks source link

Behaviour of bang-bang #6542

Open p6rt opened 6 years ago

p6rt commented 6 years ago

Migrated from rt.perl.org#132140 (status was 'new')

Searchable as RT132140$

p6rt commented 6 years ago

From book@cpan.org

Experimenting with !! showed this​:

  $ perl6 -v   This is Rakudo version 2017.08-160-g7791dd47d built on MoarVM version 2017.08.1-171-gcf95892e   implementing Perl 6.c.

  $ perl6 -e 'say !""'   True

  $ perl6 -e 'say ! ""'   True

  $ perl6 -e 'say !!""'   False

  $ perl6 -e 'say ! !""'   False

  $ perl6 -e 'say ! ! ""'   False

  $ perl6 -e 'say !!""'   False

  $ perl6 -e 'say !! ""'   Non ast passed to WANTED​: NQPMu   ===SORRY!=== Error while compiling -e   Two terms in a row   at -e​:1   ------> say !!⏏ ""   expecting any of​:   infix   infix stopper   postfix   statement end   statement modifier   statement modifier loop

  $ perl6 -e 'say !!'   ===SORRY!=== Error while compiling -e   Prefix ! requires an argument, but no valid term found   at -e​:1   ------> say !!⏏\   expecting any of​:   prefix

  $ perl6 -e '!! while 1'   ===SORRY!===   Cannot find method 'okifnil' on object of type NQPMu

  $ perl6 -e '! while 1'   ===SORRY!=== Error while compiling -e   Undeclared routine​:   while used at line 1