Diff for /parser3/src/classes/table.C between versions 1.78 and 1.80

version 1.78, 2001/05/08 10:23:50 version 1.80, 2001/05/11 17:45:10
Line 195  static void _offset(Request& r, const St Line 195  static void _offset(Request& r, const St
         Table& table=static_cast<VTable *>(r.self)->table();          Table& table=static_cast<VTable *>(r.self)->table();
         if(params->size()) {          if(params->size()) {
                 Value& offset_expr=params->get_junction(0, "offset must be expression");                  Value& offset_expr=params->get_junction(0, "offset must be expression");
                 table.shift((int)r.process(offset_expr).as_double());                  table.shift(r.process(offset_expr).as_int());
         } else {          } else {
                 Value& value=*new(pool) VInt(pool, table.current());                  Value& value=*new(pool) VInt(pool, table.current());
                 r.write_no_lang(value);                  r.write_no_lang(value);
Line 657  MTable::MTable(Pool& apool) : Methoded(a Line 657  MTable::MTable(Pool& apool) : Methoded(a
         // ^table.record[]          // ^table.record[]
         add_native_method("record", Method::CT_DYNAMIC, _record, 0, 0);          add_native_method("record", Method::CT_DYNAMIC, _record, 0, 0);
   
         /** @fn _hash          // ^table:hash[key field name]
                 ^table:hash[key field name]          // ^table:hash[key field name][value field name;...]
                 ^table:hash[key field name][value field name;...]  
         */  
         add_native_method("hash", Method::CT_DYNAMIC, _hash, 1, 1000);          add_native_method("hash", Method::CT_DYNAMIC, _hash, 1, 1000);
   
         // ^table.sort{string-key-maker} ^table.sort{string-key-maker}[asc|desc]          // ^table.sort{string-key-maker} ^table.sort{string-key-maker}[asc|desc]

Removed from v.1.78  
changed lines
  Added in v.1.80


E-mail: