|
|
| version 1.243, 2002/08/01 11:26:49 | version 1.246, 2002/08/08 14:04:48 |
|---|---|
| Line 5 | Line 5 |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| static const char* IDENT_EXECUTE_C="$Id$"; | static const char* IDENT_EXECUTE_C="$Date$"; |
| #include "pa_opcode.h" | #include "pa_opcode.h" |
| #include "pa_array.h" | #include "pa_array.h" |
| Line 1007 void Request::execute_method(Value& asel | Line 1007 void Request::execute_method(Value& asel |
| } | } |
| local_frame.set_self(*self); | local_frame.set_self(*self); |
| root=rcontext=wcontext=&local_frame; | root=rcontext=wcontext=&local_frame; |
| // prevent non-string writes for better error reporting | |
| if(return_string) | |
| wcontext->write(local_frame); | |
| // execute! | // execute! |
| execute(*method.parser_code); | execute(*method.parser_code); |
| // result | // result |
| const String *result=0; | const String *result=0; |
| if(return_string) { | if(return_string) |
| /*if(Value *result_var_value=wcontext->get_element(*result_var_name)) | |
| *return_string=&result_var_value->as_string(); | |
| else | |
| *return_string=&wcontext->as_string();*/ | |
| *return_string=&wcontext->result().as_string(); | *return_string=&wcontext->result().as_string(); |
| } | |
| wcontext=static_cast<WContext *>(POP()); | wcontext=static_cast<WContext *>(POP()); |
| rcontext=POP(); | rcontext=POP(); |