diff options
author | Teddy <[email protected]> | 2013-08-05 21:11:53 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-05 21:11:53 +0800 |
commit | 45dec735ec131c18d70ad202ed1446982b99ed9f (patch) | |
tree | 6326d2889045ec2b4d13ae0a612e24c771205029 /model.cpp | |
parent | a6574b0025b68eb28a8c7d679ca6783132ad013d (diff) |
added more built-in procedures
Diffstat (limited to 'model.cpp')
-rw-r--r-- | model.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -159,6 +159,8 @@ string BoolObj::ext_repr() { return string(val ? "#t" : "#f"); } NumObj::NumObj(NumLvl _level, bool _exactness) : EvalObj(CLS_SIM_OBJ | CLS_NUM_OBJ), level(_level), exactness(_exactness) {} +bool NumObj::is_exact() { return exactness; } + BuiltinProcObj::BuiltinProcObj(BuiltinProc f, string _name) : OptObj(), handler(f), name(_name) {} |