On Sat, Jan 20, 2007 at 06:30:00AM +0000, Johan Sundstr�m (Achtung Liebe!) @ Pike (-) developers forum wrote:
Casting is unfortunately an often useless and ill designed feature in Pike; that might account for some of the dispassion. You can only cast to primitive types, and value casts don't necessarily work, even if you know a value to be a string and want to cast it to an int, when declared a string|int.
oh, that is new to me. could you elaborate these points with some examples
not being able to cast to object types is clear, but where does casing string|int to int not work as expected? and what is ill designed about it all?
greetings, martin.