Re: A few more questions about sliders

From: Dmitry Karasik <dmitry_at_karasik.eu.org>
Date: Thu, 01 Jan 2009 12:06:09 +0100
To: tjg_at_gimmel.org

        Hi Tim!

 Tim> Dmitry, I do not understand what you mean by "$self-> {my_last_value}
 Tim> = $self-> value"? The literal "my_last_value" does not exist. Do
 Tim> you mean "my $s = $self->value;", then $s is persistent? I'm
 Tim> confused!

No, the point is, that $s is _not_ presistent. In order to get a
persistent storage, I propose a standard way to do that, store whatever
value on the object itself.

 Tim> So all of my lexical variable can conflict with others lexicals?
 Tim> Doesn't make sense.

I wouldn't use lexicals for this purpose. Either on-object storage,
or a separate variable declared outside the handlers, in the main
code section.

-- 
Sincerely,
	Dmitry Karasik
Received on Thu 01 Jan 2009 - 12:06:12 CET

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET