Navigation Menu

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

Reduce with a single non-numeric argument is WAT ([+] ‘hello’) #5494

Closed
p6rt opened this issue Jul 27, 2016 · 7 comments
Closed

Reduce with a single non-numeric argument is WAT ([+] ‘hello’) #5494

p6rt opened this issue Jul 27, 2016 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jul 27, 2016

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

Searchable as RT128757$

@p6rt
Copy link
Author

p6rt commented Jul 27, 2016

From @AlexDaniel

Code​:
say [*] ‘hello’

Result​:
hello

Code​:
say [/] ‘hello’

Result​:
hello

Code​:
say [-] ‘hello’

Result​:
hello

OK, so we get the idea, right?

Code​:
say [+] ‘hello’

Result​:
Cannot convert string to number​: base-10 number must begin with valid digits or '.' in 'â��hello' (indicated by â��)
  in block <unit> at -e line 1

Actually thrown at​:
  in block <unit> at -e line 1

Why?

@p6rt
Copy link
Author

p6rt commented Jul 27, 2016

@p6rt
Copy link
Author

p6rt commented Oct 2, 2016

From @MasterDuke17

On Wed Jul 27 14​:29​:40 2016, alex.jakimenko@​gmail.com wrote​:

Related​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128758

Seems to be fixed now​:
perl6 -e 'say [-] �hello�'
Cannot convert string to number​: base-10 number must begin with valid digits or '.' in 'â��hello' (indicated by â��)
  in block <unit> at -e line 1

Actually thrown at​:
  in block <unit> at -e line 1

perl6 --version
This is Rakudo version 2016.09-108-g3a6cd8a built on MoarVM version 2016.09-15-gc8b4228
implementing Perl 6.c.

Same for [+], [/], [*]

@p6rt
Copy link
Author

p6rt commented Oct 2, 2016

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

@p6rt
Copy link
Author

p6rt commented Oct 3, 2016

From @AlexDaniel

Right, indeed. Got fixed along with #​128758.

A couple of tests will not hurt, so marking as testneeded.

On 2016-10-02 15​:07​:02, ddgreen@​gmail.com wrote​:

On Wed Jul 27 14​:29​:40 2016, alex.jakimenko@​gmail.com wrote​:

Related​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128758

Seems to be fixed now​:
perl6 -e 'say [-] ‘hello’'
Cannot convert string to number​: base-10 number must begin with valid
digits or '.' in '�hello' (indicated by �)
in block <unit> at -e line 1

Actually thrown at​:
in block <unit> at -e line 1

perl6 --version
This is Rakudo version 2016.09-108-g3a6cd8a built on MoarVM version
2016.09-15-gc8b4228
implementing Perl 6.c.

Same for [+], [/], [*]

@p6rt
Copy link
Author

p6rt commented Oct 17, 2016

From @AlexDaniel

cpin++ added some tests​: Raku/roast@938b644

On 2016-10-02 18​:20​:25, alex.jakimenko@​gmail.com wrote​:

Right, indeed. Got fixed along with #​128758.

A couple of tests will not hurt, so marking as testneeded.

On 2016-10-02 15​:07​:02, ddgreen@​gmail.com wrote​:

On Wed Jul 27 14​:29​:40 2016, alex.jakimenko@​gmail.com wrote​:

Related​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128758

Seems to be fixed now​:
perl6 -e 'say [-] ‘hello’'
Cannot convert string to number​: base-10 number must begin with valid
digits or '.' in '�hello' (indicated by �)
in block <unit> at -e line 1

Actually thrown at​:
in block <unit> at -e line 1

perl6 --version
This is Rakudo version 2016.09-108-g3a6cd8a built on MoarVM version
2016.09-15-gc8b4228
implementing Perl 6.c.

Same for [+], [/], [*]

@p6rt p6rt closed this as completed Oct 17, 2016
@p6rt
Copy link
Author

p6rt commented Oct 17, 2016

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

@p6rt p6rt added the testneeded label Jan 5, 2020
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