Re: [Vala] converting int to string



Hi, why this not work?

root_object.has_member((string)feed_index)

and I have to use this?

root_object.has_member(feed_index.to_string())

thx


Thats because when you cast an int to string it will sometime convert
wrongly and string is an object while int isn't.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]