--- parser3/src/include/Attic/pa_vobject.h 2001/02/24 14:17:08 1.2 +++ parser3/src/include/Attic/pa_vobject.h 2001/02/25 14:23:31 1.6 @@ -1,5 +1,5 @@ /* - $Id: pa_vobject.h,v 1.2 2001/02/24 14:17:08 paf Exp $ + $Id: pa_vobject.h,v 1.6 2001/02/25 14:23:31 paf Exp $ */ #ifndef PA_VOBJECT_H @@ -14,14 +14,17 @@ public: // Value // all: for error reporting after fail(), etc const char *type() const { return "Object"; } - // object_instance: (field)=value;(STATIC)=hash;(method)=method_ref + // object_instance: (field)=value;(CLASS)=vclass;(method)=method_ref Value *get_element(const String& name) { - // $STATIC=STATIC hash - if(name==STATIC_NAME) - return &vclass.STATICS; + // $CLASS=my class + if(name==CLASS_NAME) + return &vclass; + // $BASE=my parent + if(name==BASE_NAME) + return vclass.base(); // $method=junction(this+method) - if(Method *method=static_cast(vclass.methods.get(name))) { + if(Method *method=static_cast(vclass.methods().get(name))) { Junction& j=*NEW Junction(pool(), *this, method,0,0,0,0); @@ -36,7 +39,7 @@ public: // Value // object_instance: (field)=value void put_element(const String& name, Value *value) { // speed1: - // will not check for '$STATIC(subst)' trick + // will not check for '$CLASS(subst)' trick // will hope that user ain't THAT self-hating person // speed2: // will not check for '$method_name(subst)' trick