--- parser3/src/main/execute.C 2002/10/16 08:24:55 1.286 +++ parser3/src/main/execute.C 2002/10/31 10:27:57 1.288 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_EXECUTE_C="$Date: 2002/10/16 08:24:55 $"; +static const char* IDENT_EXECUTE_C="$Date: 2002/10/31 10:27:57 $"; #include "pa_opcode.h" #include "pa_array.h" @@ -177,6 +177,11 @@ void Request::execute(const Array& ops) } case OP_WITH_WRITE: { + if(wcontext==method_frame) + throw Exception("parser.runtime", + 0, + "$.name outside of $name[...]"); + PUSH(wcontext); break; } @@ -819,7 +824,7 @@ void Request::execute(const Array& ops) } } -/// @test cache|prepare junctions +/// @todo cache|prepare junctions Value *Request::get_element(const String *& remember_name, bool can_call_operator) { const String& name=POP_NAME(); remember_name=&name; Value *ncontext=POP();