Skip to content

More API work: toInt, toInteger, toLong, asLong, asInt#8553

Merged
enebo merged 8 commits intojruby:10-devfrom
enebo:num_stuff2
Jan 3, 2025
Merged

More API work: toInt, toInteger, toLong, asLong, asInt#8553
enebo merged 8 commits intojruby:10-devfrom
enebo:num_stuff2

Conversation

@enebo
Copy link
Member

@enebo enebo commented Jan 1, 2025

More API work: toInt, toInteger, toLong, asLong, asInt

asLong and asInt are on Numeric and accept context (future proofing and fixing an issue where one type needed context).

toInt, toInteger, toLong will try and convert IRubyObject to the ruby or java types in one step.

Note: No work has been put into the implementation of these API methods. They still call back into older versions.

@enebo enebo added this to the JRuby 10.0.0.0 milestone Jan 1, 2025
@enebo enebo merged commit 0670f88 into jruby:10-dev Jan 3, 2025
55 of 73 checks passed
@enebo enebo deleted the num_stuff2 branch January 3, 2025 20:57
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

Successfully merging this pull request may close these issues.

1 participant