diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-11 12:03:52 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-11 12:03:52 +0200 |
commit | efdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd (patch) | |
tree | ffdd106d614cecb7281ae533e7dd5659ca66e871 /src/Int.vala | |
parent | 21dd3cb9a40b6bef5dbea8534557c3d6c0eebed8 (diff) | |
download | eva-efdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd.tar eva-efdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd.zip |
Many API improvements and more bugfixes
Diffstat (limited to 'src/Int.vala')
-rw-r--r-- | src/Int.vala | 28 |
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); } |