--- 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 08:50:12 1.4 @@ -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.4 2001/02/25 08:50:12 paf Exp $ */ #ifndef PA_VOBJECT_H @@ -8,20 +8,22 @@ #include "pa_value.h" #include "pa_vjunction.h" +#define CLASS_NAME "CLASS" + class VObject : public Value { 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; // $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 +38,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