From: KONTRA Gergely Date: 2003-12-13T01:56:18+09:00 Subject: types? casting and bools Hi! Recently I ran into the problem: Why ruby handle booleans so liberally? I mean why can I pass anything to an if, and for constructs requiring bool? I guess many programmers do it the wrong way saying "if 0" and expecting to be true... And on the other hand I must use to_i and others to convert from one type to another. Gergo -- +-[ Kontra, Gergely PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+