From: Austin Ziegler Date: 2006-10-06T05:56:35+09:00 Subject: Re: Why can't Ruby automatically cast variables? On 9/30/06, Joe Ruby MUDCRAP-CE wrote: > Hmm, what's the difference? IIRC, PHP's docs referred to (int)$stringvar > as casting, which seems the same as to_s, to_i, etc. PHP is not to be taken as an authority on anything. Especially Ruby. (int)$stringvar is casting. stringvar.to_i is *conversion*. The automatic handling of such conversion is called coercion. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca