diff --git a/src/object.cpp b/src/object.cpp index a21186e..754dc75 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -30,6 +30,6 @@ inline ObjectBase* OFunc::Evaluate(bool* err) if(ret!=0) return ret; } *err=true; - COUT(ERROR)<<"Function(s) "<Dump()<Dump()<Type()<size();} + bool Exist() const {return 0!=vals->size();} bool Print() const override { @@ -268,9 +268,9 @@ public: for(auto& i: *vals) { p=0; - if(IS_OTYPEI(i,ObjectPair)) p=dynamic_cast(i)->Get(gname); + if(IS_OTYPE(i,ObjectPair)) p=dynamic_cast(i)->Get(gname); if(0!=p) return p; - if(IS_OTYPEI(i,ObjectList)) p=dynamic_cast(i)->Get(gname); + if(IS_OTYPE(i,ObjectList)) p=dynamic_cast(i)->Get(gname); if(0!=p) return p; } return 0;