From: "Shot (Piotr Szotkowski)" Date: 2009-11-16T01:22:58+09:00 Subject: Re: very newbie question --9UV9rz0O2dU/yYYn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable duxieweb: > 2009/11/15 Stefano Crocco : >> Because 0 is a true value in ruby, so !queue is false and the body of >> the if expression is not executed. In ruby, the only false values are >> false and nil. > Oh, that sounds so different from > other languages that 0 is a true value. That=E2=80=99s one of Ruby=E2=80=99s (more-or-less-)distinctive features, w= hich many Rubyists =E2=80=93 myself included =E2=80=93 actually find very elegan= t. You might want to take a some of these links as well: http://www.google.com/search?q=3DRuby+gotchas =E2=80=94 Shot --=20 X Window is the Iran-Contra of graphical user interfaces: a tragedy of political compromises, entangled alliances, marketing hype, and just plain greed. X Window is to memory as Ronald Reagan was to money. [The Unix Haters Handbook] --9UV9rz0O2dU/yYYn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksAKtoACgkQi/mCfdEo8UoHugCfSD0yXGEDWKsfDqj32TKC2iB7 wqgAnRxbFuSl2X93G6kox+7FgMCmW479 =O8vN -----END PGP SIGNATURE----- --9UV9rz0O2dU/yYYn--