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

native type pretends to be Classy (e.g. int as Int) #3811

Closed
p6rt opened this issue May 3, 2015 · 5 comments
Closed

native type pretends to be Classy (e.g. int as Int) #3811

p6rt opened this issue May 3, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented May 3, 2015

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

Searchable as RT124461$

@p6rt
Copy link
Author

p6rt commented May 3, 2015

From @coke

Anything that needs to call a method on an int to verify it's an int and not an Int will fail.

09​:59 < jnthn> [Coke]​: If it's to check a variable declared is int is really
  native, you could try sticking a huge value (only storable as a
  big Int) into an int, and seeing it doesn't round-trip...

So, we need to fix these few tests if we're trying to make sure an int ain't an Int.

--
Will "Coke" Coleda

1 similar comment
@p6rt
Copy link
Author

p6rt commented May 3, 2015

From @coke

Anything that needs to call a method on an int to verify it's an int and not an Int will fail.

09​:59 < jnthn> [Coke]​: If it's to check a variable declared is int is really
  native, you could try sticking a huge value (only storable as a
  big Int) into an int, and seeing it doesn't round-trip...

So, we need to fix these few tests if we're trying to make sure an int ain't an Int.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 3, 2015

From @coke

This test fails by design; If you call a method on a native to ask it something, it has to box to a Class type first.

Changed the test so it relies on overflow behavior to verify that a) int is a valid type and b) that it only has so much storage.

--
Will "Coke" Coleda

1 similar comment
@p6rt
Copy link
Author

p6rt commented May 3, 2015

From @coke

This test fails by design; If you call a method on a native to ask it something, it has to box to a Class type first.

Changed the test so it relies on overflow behavior to verify that a) int is a valid type and b) that it only has so much storage.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 3, 2015

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

@p6rt p6rt closed this as completed May 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant