summaryrefslogtreecommitdiffstats
path: root/src/Int.vala
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-07-11 12:03:52 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-07-11 12:03:52 +0200
commitefdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd (patch)
treeffdd106d614cecb7281ae533e7dd5659ca66e871 /src/Int.vala
parent21dd3cb9a40b6bef5dbea8534557c3d6c0eebed8 (diff)
downloadeva-efdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd.tar
eva-efdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd.zip
Many API improvements and more bugfixes
Diffstat (limited to 'src/Int.vala')
-rw-r--r--src/Int.vala28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/Int.vala b/src/Int.vala
index 5df3857..b881a2c 100644
--- a/src/Int.vala
+++ b/src/Int.vala
@@ -1,7 +1,33 @@
namespace Eva {
- public class Int : Object, Term {
+ public class Int : Object, Term, Numeric {
public long value {get; construct;}
+ public int int_value {
+ get {
+ return (int)value;
+ }
+ }
+ public uint uint_value {
+ get {
+ return (uint)value;
+ }
+ }
+ public long long_value {
+ get {
+ return value;
+ }
+ }
+ public ulong ulong_value {
+ get {
+ return value;
+ }
+ }
+ public double double_value {
+ get {
+ return value;
+ }
+ }
+
public Int(long v) {
Object(value: v);
}