Project

General

Profile

Actions

Bug #21317

closed

Namespaces leak with object IDs

Added by fxn (Xavier Noria) 1 day ago. Updated about 15 hours ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:121951]

Description

Namespaces are not transparent for this program

if mod1.object_id == mod2.object_id
  mod1.constants == mod2.constants
end

because it may fail for mod1 = Object; mod2 = ns::Object, which have the same object ID.


Related issues 1 (1 open0 closed)

Related to Ruby - Bug #21322: Namespaces and builtin classes as arguments and return valuesOpenActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0