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

:2(…) radix syntax no longer suggests using .base (:2(42)) #6613

Closed
p6rt opened this issue Oct 14, 2017 · 4 comments
Closed

:2(…) radix syntax no longer suggests using .base (:2(42)) #6613

p6rt opened this issue Oct 14, 2017 · 4 comments
Labels
LTA Less Than Awesome; typically an error message that could be better regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Oct 14, 2017

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

Searchable as RT132295$

@p6rt
Copy link
Author

p6rt commented Oct 14, 2017

From @AlexDaniel

Code​:
say :2(1);

¦«2015.12»​:
This call only converts base-2 strings to numbers; value 1 is of type Int, so cannot be converted!
(If you really wanted to convert 1 to a base-2 string, use 1.base(2) instead.)
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/14950971/snippet line 1
«exit code = 1»

¦«2016.06»​:
This call only converts base-2 strings to numbers; value 1 is of type Int, so cannot be converted!
(If you really wanted to convert 1 to a base-2 string, use 1.base(2) instead.)
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/14950971/snippet line 1
«exit code = 1»

¦«2016.12»​:
This call only converts base-2 strings to numbers; value 1 is of type Int, so cannot be converted!
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/14950971/snippet line 1
«exit code = 1»

¦«2017.06»​:
This call only converts base-2 strings to numbers; value 1 is of type Int, so cannot be converted!
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/14950971/snippet line 1
«exit code = 1»

¦«f72be0f130cf»​:
This call only converts base-2 strings to numbers; value 1 is of type Int, so cannot be converted!
  in block <unit> at /home/bisectable/git/whateverable/data/regressionable/14950971/snippet line 1
«exit code = 1»

Possible IRC discussion​: https://irclog.perlgeek.de/perl6/2017-08-01#i_14950971

Bisectable​: (2016-11-14) rakudo/rakudo@1dc4c42

So previously it said �use 1.base(2) instead� and now it no longer does. I think it should.

@p6rt
Copy link
Author

p6rt commented Oct 14, 2017

From @zoffixznet

On Sat, 14 Oct 2017 00​:54​:02 -0700, alex.jakimenko@​gmail.com wrote​:

Code​:
say :2(1);

¦«2015.12»​:
This call only converts base-2 strings to numbers; value 1 is of type
Int, so cannot be converted!
(If you really wanted to convert 1 to a base-2 string, use 1.base(2)
instead.)
in block <unit> at
/home/bisectable/git/whateverable/data/regressionable/14950971/snippet
line 1
«exit code = 1»

¦«2016.06»​:
This call only converts base-2 strings to numbers; value 1 is of type
Int, so cannot be converted!
(If you really wanted to convert 1 to a base-2 string, use 1.base(2)
instead.)
in block <unit> at
/home/bisectable/git/whateverable/data/regressionable/14950971/snippet
line 1
«exit code = 1»

¦«2016.12»​:
This call only converts base-2 strings to numbers; value 1 is of type
Int, so cannot be converted!
in block <unit> at
/home/bisectable/git/whateverable/data/regressionable/14950971/snippet
line 1
«exit code = 1»

¦«2017.06»​:
This call only converts base-2 strings to numbers; value 1 is of type
Int, so cannot be converted!
in block <unit> at
/home/bisectable/git/whateverable/data/regressionable/14950971/snippet
line 1
«exit code = 1»

¦«f72be0f130cf»​:
This call only converts base-2 strings to numbers; value 1 is of type
Int, so cannot be converted!
in block <unit> at
/home/bisectable/git/whateverable/data/regressionable/14950971/snippet
line 1
«exit code = 1»

Possible IRC discussion​: https://irclog.perlgeek.de/perl6/2017-08-
01#i_14950971

Bisectable​: (2016-11-14)
rakudo/rakudo@1dc4c42

So previously it said �use 1.base(2) instead� and now it no longer
does. I think it should.

Fix​: rakudo/rakudo@de2b9ff720
Test​: rakudo/rakudo@de2b9ff720

@p6rt
Copy link
Author

p6rt commented Oct 14, 2017

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

@p6rt
Copy link
Author

p6rt commented Oct 14, 2017

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

@p6rt p6rt closed this as completed Oct 14, 2017
@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better regression Issue did not exist previously labels 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 regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant