Feature #8265

-0.0 does not have a Flonum like 0.0

Added by Hans Mackowiak about 1 year ago. Updated about 1 year ago.

[ruby-core:54262]
Status:Rejected
Priority:Normal
Assignee:Koichi Sasada
Category:core
Target version:-

Description

=begin
with Flonum,
fixed id for 0.0
(0.0).objectid #=> -9223372036854775806
(0.0).object
id #=> -9223372036854775806

non-fixed id for -0.0
(-0.0).objectid #=> 22387560
(-0.0).object
id #=> 22381340

i think that -0.0 should have fixed object_id too
=end

History

#1 Updated by Koichi Sasada about 1 year ago

i think that -0.0 should have fixed object_id too

Why?

#2 Updated by Nobuyoshi Nakada about 1 year ago

  • Tracker changed from Bug to Feature
  • Status changed from Open to Feedback

#3 Updated by Nobuyoshi Nakada about 1 year ago

  • Description updated (diff)

#4 Updated by Yui NARUSE about 1 year ago

  • Description updated (diff)

#5 Updated by Hans Mackowiak about 1 year ago

for me it doesnt make much sense that some Floats have fixed object_ids and some Floats does have not, so i think, when fixed ids are possible than they should be for much of them as possible

#6 Updated by Koichi Sasada about 1 year ago

  • Category set to core
  • Status changed from Feedback to Rejected
  • Assignee set to Koichi Sasada

It seems not practical problem.
Please reopen this ticket if you find real problem.

(for example, there are too many -0.0 objects in your program and it beats performance)

Also available in: Atom PDF