From: Kent Dahl Date: 2002-08-05T02:37:44+09:00 Subject: Re: #Re: String -> Integer anomoly? Gavin Sinclair wrote: > > Hmmm, strikes me as a violation of POLS. > > Integer("012") != "012".to_i > > What do others think? Doesn't violate my PoLS atleast. Since Integer is a method of Kernel, and to_i (in this case) is a method of String, I am not surprised to see them have different takes on the matter. As in "Hey, I'm the kernel, and I care about hex, octal and such geeky stuff." and "Hey, I'm a (l)user input string, you don't think I'd be trying to be octal or anything that geeky, do ya?" -- (\[ Kent Dahl ]/)_ _~_ __[ http://www.stud.ntnu.no/~kentda/ ]___/~ ))\_student_/(( \__d L b__/ NTNU - graduate engineering - 4. year ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)