--- parser3/src/main/execute.C 2003/02/03 09:17:47 1.295.2.7 +++ parser3/src/main/execute.C 2003/02/04 08:29:26 1.295.2.9 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_EXECUTE_C="$Date: 2003/02/03 09:17:47 $"; +static const char* IDENT_EXECUTE_C="$Date: 2003/02/04 08:29:26 $"; #include "pa_opcode.h" #include "pa_array.h" @@ -443,7 +443,7 @@ void Request::execute(ArrayOperation& op throw Exception("parser.runtime", frame.name(), "is not a constructor, system class '%s' can be constructed only implicitly", - called_class->name()->cstr()); + called_class->name()->cstr().get()); frame.write(new_self, String::UL_CLEAN // not used, always an object, not string @@ -505,7 +505,7 @@ void Request::execute(ArrayOperation& op if(op.code==OP_CALL__WRITE) { write_assign_lang(result, last_get_element_name); } else { // OP_CALL - stack.push(&result.as_value()); + stack.push(result.as_value()); } #ifdef DEBUG_EXECUTE @@ -1008,18 +1008,18 @@ StringPtr Request::execute_method(ValueP return result; } -StringPtr Request::execute_nonvirtual_method(VStateless_classPtr aclass, +StringPtr Request::execute_nonvirtual_method(VStateless_class& aclass, StringPtr method_name, VStringPtr optional_param, bool do_return_string, const Method **return_method) { - const Method *method=aclass->get_method(method_name); + const Method *method=aclass.get_method(method_name); StringPtr result(0); if(return_method) *return_method=method; if(method) - return execute_method(aclass, *method, optional_param, do_return_string); + return execute_method(ValuePtr(&aclass), *method, optional_param, do_return_string); else return 0; }