From: David Vallner Date: 2006-10-21T20:51:40+09:00 Subject: Re: debugging using tk.rb --------------enig3C280F49FB32548E30C73F12 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Wybo Dekker wrote: > When I use () instead of {}: evloop =3D Thread.new(Tk.mainloop) > then it starts normally, but there is no difference with just Tk.mainlo= op. > Duh. Ruby is a strictly evaluated language, arguments to a function call are evaluated before the call. Tk.mainloop hangs the interpreter before Thread.new is ever called. (You might want to spend some time on learning Ruby syntax and what the difference between those brackets is.) David Vallner --------------enig3C280F49FB32548E30C73F12 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD4DBQFFOgnYy6MhrS8astoRAnNmAJi0HuxZNMlPNHb8E4qKPRw+/Dg0AJsHWmYL /Limaic05DvoQuwbHWRb5Q== =oQTx -----END PGP SIGNATURE----- --------------enig3C280F49FB32548E30C73F12--