--- parser3/src/classes/op.C 2002/10/15 14:00:43 1.119 +++ parser3/src/classes/op.C 2002/10/16 08:22:13 1.122 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_OP_C="$Date: 2002/10/15 14:00:43 $"; +static const char* IDENT_OP_C="$Date: 2002/10/16 08:22:13 $"; #include "classes.h" #include "pa_common.h" @@ -152,8 +152,6 @@ static void _process(Request& r, const S // after restoring current-request-lang // maybe-execute @main[] if(main_method) { - // temporarily set request's self to target_self - Temp_request_self trs(r, target_self); // temporarily set method_frame's self to target_self Temp_method_frame_self tmfs(*r.get_method_frame(), target_self); // execute! @@ -647,6 +645,8 @@ static void _throw_operator(Request& r, // constructor VClassMAIN::VClassMAIN(Pool& apool): VClass(apool) { + set_name(*NEW String(pool(), MAIN_CLASS_NAME)); + // ^if(condition){code-when-true} // ^if(condition){code-when-true}{code-when-false} add_native_method("if", Method::CT_ANY, _if, 2, 3);