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

∞ as literal Inf not recognized in signatures #5759

Closed
p6rt opened this issue Oct 19, 2016 · 8 comments
Closed

∞ as literal Inf not recognized in signatures #5759

p6rt opened this issue Oct 19, 2016 · 8 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Oct 19, 2016

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

Searchable as RT129915$

@p6rt
Copy link
Author

p6rt commented Oct 19, 2016

From @zoffixznet

� as literal Inf not recognized in signatures, unless it's a signature
literal​:

<ZoffixW> m​: sub (â��) {}
<camelia> rakudo-moar 200364​: OUTPUT«===SORRY!=== Error while
compiling <tmp>â�¤Missing blockâ�¤at <tmp>​:1â�¤------> sub (â��â��) {}â�¤Â»
<ZoffixW> m​: say :(â��)
<camelia> rakudo-moar 200364​: OUTPUT«Infâ�¤Â»

13​:51 iBakeCake m​: multi sub infix​:<â��> (â��, â��) { Bool​::True };
13​:51 camelia rakudo-moar 200364​: OUTPUT«===SORRY!=== Error while
compiling <tmp>â�¤Missing blockâ�¤at <tmp>​:1â�¤------> multi sub infix​:<â��>
(â��â��, â��) { Bool​::True };â�¤Â»
13​:51 iBakeCake m​: multi sub infix​:<â��> (Inf, Inf) { Bool​::True };
13​:51 camelia rakudo-moar 200364​: ( no output )

@p6rt
Copy link
Author

p6rt commented Oct 21, 2016

From @zoffixznet

Another case​: fancy pants â��

<ZoffixW> m​: sub foo (â��42) {say "got it"}(â��42)
<camelia> rakudo-moar b1f77c​: OUTPUT«===SORRY!=== Error while compiling <tmp>â�¤Missing blockâ�¤at <tmp>​:1â�¤------> sub foo (â��â��42) {say "got it"}(â��42)â�¤Â»

<ZoffixW> m​: sub foo (â��Inf) {say "got it"}(â��Inf)
<camelia> rakudo-moar b1f77c​: OUTPUT«===SORRY!=== Error while compiling <tmp>â�¤Missing blockâ�¤at <tmp>​:1â�¤------> sub foo (â��â��Inf) {say "got it"}(â��Inf)â�¤Â»

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 21, 2016

From @zoffixznet

Another case​: fancy pants â��

<ZoffixW> m​: sub foo (â��42) {say "got it"}(â��42)
<camelia> rakudo-moar b1f77c​: OUTPUT«===SORRY!=== Error while compiling <tmp>â�¤Missing blockâ�¤at <tmp>​:1â�¤------> sub foo (â��â��42) {say "got it"}(â��42)â�¤Â»

<ZoffixW> m​: sub foo (â��Inf) {say "got it"}(â��Inf)
<camelia> rakudo-moar b1f77c​: OUTPUT«===SORRY!=== Error while compiling <tmp>â�¤Missing blockâ�¤at <tmp>​:1â�¤------> sub foo (â��â��Inf) {say "got it"}(â��Inf)â�¤Â»

@p6rt
Copy link
Author

p6rt commented Oct 22, 2016

From @zoffixznet

Happens outside of signatures too​:

<Zoffix> m​: 42eâ��5
<camelia> rakudo-moar e0619f​: OUTPUT«===SORRY!=== Error while compiling <tmp>â�¤Confusedâ�¤at <tmp>​:1â�¤------> 42â��eâ��5â�¤ expecting any of​:â�¤ whitespaceâ�¤Â»

@p6rt
Copy link
Author

p6rt commented Oct 27, 2016

From @zoffixznet

As part of the fix for this ticket. Check that -Inf² correctly gives -Inf. -Inf is currently listed as special case in numish token, which causes that bug

@p6rt
Copy link
Author

p6rt commented Dec 3, 2016

From @zoffixznet

Fix for U+2212 minus with Int in signature​: rakudo/rakudo@6cd2144b5a
  and tests for it​: Raku/roast@141fedc99c

@p6rt
Copy link
Author

p6rt commented Dec 3, 2016

From @zoffixznet

Fixed in rakudo/rakudo@ae614f94b0
Tests in Raku/roast@5944f8c36a

@p6rt
Copy link
Author

p6rt commented Dec 3, 2016

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Dec 3, 2016
@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant