--- parser3/src/main/execute.C 2001/03/19 19:17:44 1.119 +++ parser3/src/main/execute.C 2001/03/19 22:11:09 1.121 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: execute.C,v 1.119 2001/03/19 19:17:44 paf Exp $ + $Id: execute.C,v 1.121 2001/03/19 22:11:09 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; } @@ -349,9 +349,7 @@ void Request::execute(const Array& ops) // some stateless_object derivates with constructors 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()); - else */ // stateful object + else // stateful object self=NEW VObject(pool(), *called_class); frame->write(*self, String::Untaint_lang::NO // not used, always an object, not string