namespace Eva { public class Int : Object, Term { public long value {get; construct;} public Int(long v) { Object(value: v); } public string to_string() { return value.to_string(); } protected bool do_match(Term o, Gee.Map vars, Gee.Map aliases) { if(o is Var) { return o.do_match(this, vars, aliases); } if(o is Int) { return value == (o as Int).value; } else if(o is UInt) { return value == (o as UInt).value; } else { return false; } } public void encode(Erl.Buffer buffer) { buffer.encode_long(value); } } }