Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <web-client> master : Improve robustness --> Funny behavior or Ruby
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Thu, 16 Jul 2009 09:56:38 +0200
  • Message-id: <4A5EDD36.2060902@xxxxxxx>
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 ?

Greetings
Stefan

--
*******************************************************************************
Stefan Schubert
SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany
e-mail: schubi@xxxxxxx
-------------------------------------------------------------------------------
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 >
Follow Ups