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

Adverbial integer literal is Num instead of Int #2023

Closed
p6rt opened this issue Aug 6, 2010 · 5 comments
Closed

Adverbial integer literal is Num instead of Int #2023

p6rt opened this issue Aug 6, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 6, 2010

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

Searchable as RT77034$

@p6rt
Copy link
Author

p6rt commented Aug 6, 2010

From sohtil@gmail.com

Hi!

I would expect :16<10> to be an Int like 0x10, but it comes out as a Num​:

This is Rakudo Perl 6, version 2010.07-84-g0e5edb5 built on parrot 2.6.0 r48225

Copyright 2008-2010, The Perl Foundation

$ ./perl6

:16<10>
16
:16<10>.WHAT
Num()
:16<10> === 0x10
0

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

From @coke

On Fri Aug 06 01​:23​:22 2010, lithos wrote​:

Hi!

I would expect :16<10> to be an Int like 0x10, but it comes out as a
Num​:

This is Rakudo Perl 6, version 2010.07-84-g0e5edb5 built on parrot
2.6.0 r48225

Copyright 2008-2010, The Perl Foundation

$ ./perl6

:16<10>
16
:16<10>.WHAT
Num()
:16<10> === 0x10
0

No change in the past year​:

21​:12 < [Coke]> rakudo​: say :16<10>
21​:12 <+p6eval> rakudo 38907e​: OUTPUT«16␤»
21​:12 < [Coke]> rakudo​: say :16<10>.WHAT
21​:12 <+p6eval> rakudo 38907e​: OUTPUT«Num()␤»
21​:13 < [Coke]> rakudo​: say( :16<10> === 0x10 )
21​:13 <+p6eval> rakudo 38907e​: OUTPUT«Bool​::False␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

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

@p6rt
Copy link
Author

p6rt commented Mar 31, 2012

From @moritz

works now, and tested in S02-literals/radix.t

@p6rt
Copy link
Author

p6rt commented Mar 31, 2012

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

@p6rt p6rt closed this as completed Mar 31, 2012
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant