Diff for /parser3/src/classes/table.C between versions 1.2 and 1.5

version 1.2, 2001/03/12 17:00:46 version 1.5, 2001/03/12 18:19:36
Line 27  static void set_or_load( Line 27  static void set_or_load(
         Pool& pool=r.pool();          Pool& pool=r.pool();
         // data is last parameter          // data is last parameter
         Value *vdata=static_cast<Value *>(params->get(params->size()-1));          Value *vdata=static_cast<Value *>(params->get(params->size()-1));
         if(vdata->get_junction())          // forcing
                 R_THROW(0, 0,          //      [this param type] 
                         &method_name,          //      [this param type] 
                         "body must not be a junction");          r.fail_if_junction_(true, *vdata, 
                   method_name, "body must not be a junction");
   
         // data or file_name          // data or file_name
         char *data_or_filename=vdata->as_string().cstr();          char *data_or_filename=vdata->as_string().cstr();
Line 88  void initialize_table_class(Pool& pool, Line 89  void initialize_table_class(Pool& pool,
         // ^table.set[data]  ^table.set[nameless;data]          // ^table.set[data]  ^table.set[nameless;data]
         vclass.add_native_method("set", _set, 1, 2);          vclass.add_native_method("set", _set, 1, 2);
   
         // ^table.load[data]  ^table.load[nameless;data]          // ^table.load[file]  ^table.load[nameless;file]
         vclass.add_native_method("load", _load, 1, 2);          vclass.add_native_method("load", _load, 1, 2);
 }         }       

Removed from v.1.2  
changed lines
  Added in v.1.5


E-mail: