[Vala] Convert string to int
- From: Chriss Kalogeropoulos <iz iznogood gmail com>
- To: vala-list gnome org
- Subject: [Vala] Convert string to int
- Date: Fri, 03 Sep 2010 00:12:19 +0300
Hi all,
i just started to play with vala and i find it very interesting and
promising project.
How can i validate that the string conversion to int has actually
happened ? It does not throw any exceptions and it seems to use atoi
which returns 0 on failure, which does not say much.
Generally if a method fails how does it handle it ? It throws exceptions
or uses some global error code ? I read in a previous post that vala
only handles glib and friends errors but not normal c library errors
although they are used all over.
Thanks in advance
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]