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/UInt.vala | |
parent | 21dd3cb9a40b6bef5dbea8534557c3d6c0eebed8 (diff) | |
download | eva-efdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd.tar eva-efdd8b44b2fcc7fcf4f7ba37ac4045793be8fecd.zip |
Many API improvements and more bugfixes
Diffstat (limited to 'src/UInt.vala')
-rw-r--r-- | src/UInt.vala | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/UInt.vala b/src/UInt.vala index a7ea4f8..84e09aa 100644 --- a/src/UInt.vala +++ b/src/UInt.vala @@ -1,7 +1,33 @@ namespace Eva { - public class UInt : Object, Term { + public class UInt : Object, Term, Numeric { public ulong 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 (long)value; + } + } + public ulong ulong_value { + get { + return value; + } + } + public double double_value { + get { + return value; + } + } + public UInt(ulong v) { Object(value: v); } |