Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
Re: [yast-devel] Re: [yast-commit] <web-client> master : Improve robustness --> Funny behavior or Ruby
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Thu, 16 Jul 2009 10:57:18 +0200
  • Message-id: <20090716085718.GC10149@xxxxxxxxxxxxx>
* Stefan Schubert <schubi@xxxxxxx> [Jul 16. 2009 09:56]:
Klaus KXXmpf schrieb:
- def create_data()
- @data = {}
- @limits = {}
- @limits_list = {}
+ def create_data
+ @data = @limits = @limits_list = @data_group = Hash.new
status = []

It seems that all variables have now the same reference to ONE Hash. Has
anyone an explanation for that ?


Ouch, you're right. Sorry for that.

Internally, only nil, true, false, and Integer are represented in a
Ruby VALUE.

All other object types are references.

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N├╝rnberg)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
References