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

prefix:<so> and prefix:<not> cause LTM error in hyphenated sub names like not-foo() #3125

Closed
p6rt opened this issue May 7, 2013 · 6 comments

Comments

@p6rt
Copy link

p6rt commented May 7, 2013

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

Searchable as RT117901$

@p6rt
Copy link
Author

p6rt commented May 7, 2013

From @labster

labster​: r​: sub not-foo { "2" }; say not-foo();
camelia​: rakudo 9ed5c5​: OUTPUT«[31m===[0mSORRY![31m===[0m␤Undeclared
routine​:␤ foo used at line 1␤␤»
labster​: r​: sub so-what { say "nyan"; }; so-what;
camelia​: rakudo 9ed5c5​: OUTPUT«[31m===[0mSORRY![31m===[0m␤Undeclared
routine​:␤ what used at line 1␤␤»
labster​: rn​: sub funny { "​:)" }; sub not-so-funny { ">​:O"}; say funny() and
not-so-funny;
camelia​: rakudo 9ed5c5​: OUTPUT«​:)␤Cannot convert string to number​: radix
(in decimal) expected after '​:' in '​:⏏)' (indicated by ⏏)␤ in method
Numeric at src/gen/CORE.setting​:10020␤ in sub prefix​:<-> at
src/gen/CORE.setting​:2818␤ in sub prefix​:<-> at
src/gen/CORE.setting​:2817␤ in sub prefix​:<…
camelia​: ..niecza v24-40-g31f36d2​: OUTPUT«​:)␤»

@p6rt
Copy link
Author

p6rt commented May 8, 2013

From @labster

lizmat++ would like to add that regex-like statements cause the same
problems, so subs like s-foo, m-foo, and rx-foo also cause problems,
though my intuition is that it's a separate bug.

@p6rt
Copy link
Author

p6rt commented May 8, 2013

@labster - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 2, 2015

From @usev6

This works now​:

$ perl6 -e 'sub not-foo { "2" }; say not-foo();'
2

$ perl6 -e 'sub so-what { say "nyan"; }; so-what;'
nyan

$ perl6 -e 'sub m-foo { say "nyan"; }; m-foo;'
nyan

I added three tests to S06-other/misc.t with commit Raku/roast@c3d0fa4d70

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Mar 2, 2015

From @usev6

This works now​:

$ perl6 -e 'sub not-foo { "2" }; say not-foo();'
2

$ perl6 -e 'sub so-what { say "nyan"; }; so-what;'
nyan

$ perl6 -e 'sub m-foo { say "nyan"; }; m-foo;'
nyan

I added three tests to S06-other/misc.t with commit Raku/roast@c3d0fa4d70

I'm closing this ticket as 'resolved'.

@p6rt p6rt closed this as completed Mar 2, 2015
@p6rt
Copy link
Author

p6rt commented Mar 2, 2015

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

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