Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behaviour of bang-bang #6542

Open
p6rt opened this issue Sep 21, 2017 · 1 comment
Open

Behaviour of bang-bang #6542

p6rt opened this issue Sep 21, 2017 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Sep 21, 2017

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

Searchable as RT132140$

@p6rt
Copy link
Author

p6rt commented Sep 21, 2017

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 !!⏏<EOL>
  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant