Project

General

Profile

Actions

Bug #4699

closed

Arrays - affectation

Added by scicasoft (Cheikh Sidya CAMARA) over 13 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
[ruby-core:36202]

Description

a = [1,2,3]
b = a
b[1] = 10

the content of a : [1, 10, 3]

why the variables a and b point on the same space ?

a.object_id = b.boject_id

Actions

Also available in: Atom PDF

Like0
Like0Like0