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

ord.Cool outputs LTA error #2820

Closed
p6rt opened this issue Jul 6, 2012 · 8 comments
Closed

ord.Cool outputs LTA error #2820

p6rt opened this issue Jul 6, 2012 · 8 comments

Comments

@p6rt
Copy link

p6rt commented Jul 6, 2012

Migrated from rt.perl.org#114014 (status was 'resolved')

Searchable as RT114014$

@p6rt
Copy link
Author

p6rt commented Jul 6, 2012

From @zhuomingliang

JimmyZ rn​: say ord.Cool
p6eval rakudo 501e8a​: OUTPUT«===SORRY!===␤CHECK FAILED​:␤Calling 'ord' will never work with no arguments (line 1)␤ Expected​: :(Cool $s)␤»
p6eval ..niecza v19-12-gf36d743​: OUTPUT«===SORRY!===␤␤Unsupported use of bare 'ord'; in Perl 6 please use .ord if you meant $_, or use an explicit invocant or argument at /tmp/zdTud40u3o line 1​:␤------> say ord⏏.Cool␤␤Unhandled exception​: Check failed␤␤ at /…
JimmyZ LTA ?
JimmyZ std​: say ord.Cool
p6eval std fd2647b​: OUTPUT«===SORRY!===␤Unsupported use of bare 'ord'; in Perl 6 please use .ord if you meant $_, or use an explicit invocant or argument at /tmp/y0aeIaRTxr line 1​:␤------> say ord⏏.Cool␤Check failed␤FAILED 00​:00 41m␤»
masak JimmyZ​: slightly. feel free to submit rakudobug.

@p6rt
Copy link
Author

p6rt commented Aug 2, 2013

From @moritz

On Fri Jul 06 06​:40​:19 2012, jimmy.zhuo@​gmail.com wrote​:

JimmyZ rn​: say ord.Cool
p6eval rakudo 501e8a​: OUTPUT«===SORRY!===␤CHECK FAILED​:␤Calling 'ord'
will never work with no arguments (line 1)␤ Expected​: :(Cool $s)␤»
p6eval ..niecza v19-12-gf36d743​: OUTPUT«===SORRY!===␤␤Unsupported use
of bare 'ord'; in Perl 6 please use .ord if you meant $_, or use an
explicit invocant or argument at /tmp/zdTud40u3o line 1​:␤------>
say ord⏏.Cool␤␤Unhandled exception​: Check failed␤␤ at /…
JimmyZ LTA ?

I find the error message quite good, because it reminds you that you
have really written ord().Cool.

What error message would you have expected?

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Aug 2, 2013

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 2, 2013

From @masak

< masak> moritz​: what error message would I have expected? the one STD
gave at the end of the original message.
< masak> "Unsupported use of bare 'ord'; in Perl 6 please use .ord if you
meant $_, or use an explicit invocant or argument"
* masak adds that to the ticket

@p6rt
Copy link
Author

p6rt commented Aug 21, 2014

From @coke

On Fri Aug 02 08​:56​:42 2013, masak wrote​:

< masak> moritz​: what error message would I have expected? the one STD
gave at the end of the original message.
< masak> "Unsupported use of bare 'ord'; in Perl 6 please use .ord if you
meant $_, or use an explicit invocant or argument"
* masak adds that to the ticket

16​:16 < [Coke]> r​: ord.Cool
16​:16 <+camelia> rakudo-{parrot,jvm,moar} bc6a32​: OUTPUT«===SORRY!=== Error
  while compiling /tmp/tmpfile␤Calling 'ord' requires arguments
  (if you meant to operate on $_, please use .ord or use an
  explicit invocant or argument)␤ Expected​: :(Cool $s)␤at
  /tmp/tmpfile​:1␤----…»

Closable with tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 1, 2015

From @usev6

Nowadays this gives the error message from std​:

$ perl6 -e 'say ord.Cool'
===SORRY!=== Error while compiling -e
Unsupported use of bare 'ord'; in Perl 6 please use .ord if you meant $_, or use an explicit invocant or argument
at -e​:1
------> say ord⏏.Cool
  expecting any of​:
  argument list

I added a test to S32-exceptions/misc.t with commit Raku/roast@8f858cb654

I'm closing this ticket now.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 1, 2015

From @usev6

Nowadays this gives the error message from std​:

$ perl6 -e 'say ord.Cool'
===SORRY!=== Error while compiling -e
Unsupported use of bare 'ord'; in Perl 6 please use .ord if you meant $_, or use an explicit invocant or argument
at -e​:1
------> say ord⏏.Cool
  expecting any of​:
  argument list

I added a test to S32-exceptions/misc.t with commit Raku/roast@8f858cb654

I'm closing this ticket now.

@p6rt
Copy link
Author

p6rt commented Jan 1, 2015

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jan 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant