--- parser3/src/main/execute.C 2001/03/19 17:42:15 1.118 +++ parser3/src/main/execute.C 2001/03/19 21:59:17 1.120 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: execute.C,v 1.118 2001/03/19 17:42:15 paf Exp $ + $Id: execute.C,v 1.120 2001/03/19 21:59:17 paf Exp $ */ #include "code.h" @@ -156,13 +156,13 @@ void Request::execute(const Array& ops) wcontext->set_somebody_entered_some_class(); const String& name=POP_NAME(); - VClass *vclass=static_cast(classes().get(name)); - if(!vclass) + Value *value=static_cast(classes().get(name)); + if(!value) THROW(0,0, &name, ": undefined class"); - PUSH(vclass); + PUSH(value); break; } @@ -347,7 +347,7 @@ void Request::execute(const Array& ops) wcontext->somebody_entered_some_class()) { // ^class:method[..]? // yes, this is a constructor call // some stateless_object derivates with constructors - if(called_class->name()==TABLE_CLASS_NAME) + if(called_class==table_class)///called_class->name()==TABLE_CLASS_NAME) self=NEW VTable(pool()); else /*if(called_class->name()==ENV_CLASS_NAME) self=NEW VEnv(pool());