--- parser3/src/main/execute.C 2003/01/31 12:34:35 1.295.2.4 +++ parser3/src/main/execute.C 2003/01/31 14:03:54 1.295.2.5 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_EXECUTE_C="$Date: 2003/01/31 12:34:35 $"; +static const char* IDENT_EXECUTE_C="$Date: 2003/01/31 14:03:54 $"; #include "pa_opcode.h" #include "pa_array.h" @@ -112,12 +112,6 @@ void debug_dump(Pool& pool, int level, c #define POP_NAME() static_cast(stack.pop())->as_string() #define POP_CODE() static_cast(stack.pop()) -// ArrayOperation - -ArrayOperation::~ArrayOperation() { - // go through code, and recoursively delete [free] array/value pointers -} - // Request void Request::execute(const Array& ops) { @@ -486,7 +480,7 @@ void Request::execute(const Array& ops) } catch(...) { // record it to stack trace exception_trace.push((void *)&frame.name()); - /*re*/throw; + rethrow; } } else throw Exception("parser.runtime", @@ -1013,7 +1007,7 @@ void Request::execute_method(Value& asel } void Request::execute_nonvirtual_method(VStateless_class& aclass, - const String& method_name, VString *optional_param, + StringPtr method_name, VStringPtr optional_param, const String **return_string, const Method **return_method) { @@ -1027,8 +1021,8 @@ void Request::execute_nonvirtual_method( execute_method(aclass, *method, optional_param, return_string); } -const String *Request::execute_virtual_method(Value& aself, - const String& method_name) { +StringPtr Request::execute_virtual_method(Value& aself, + StringPtr method_name) { if(Value *value=aself.get_element(method_name, aself, false)) if(Junction *junction=value->get_junction()) if(const Method *method=junction->method) {