--- parser3/src/classes/table.C 2005/08/26 11:08:31 1.208.6.2 +++ parser3/src/classes/table.C 2005/08/09 08:14:48 1.210 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_TABLE_C="$Date: 2005/08/26 11:08:31 $"; +static const char * const IDENT_TABLE_C="$Date: 2005/08/09 08:14:48 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -21,7 +21,7 @@ static const char * const IDENT_TABLE_C= class MTable: public Methoded { public: // VStateless_class - Value* create_new_value(Pool&) { return new VTable(); } + Value* create_new_value(Pool&, HashStringValue&) { return new VTable(); } public: MTable(); @@ -477,8 +477,8 @@ static void _offset(Request& r, MethodPa "is invalid whence, valid are 'cur' or 'set'"); } - int offset=params.as_int(params.count()-1, "offset must be expression", r); - table.offset(absolute, offset); + Value& offset_expr=params.as_junction(params.count()-1, "offset must be expression"); + table.offset(absolute, r.process_to_value(offset_expr).as_int()); } else r.write_no_lang(*new VInt(table.current())); }