--- parser3/src/classes/table.C 2001/03/12 17:00:46 1.2 +++ parser3/src/classes/table.C 2001/03/12 18:19:36 1.5 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: table.C,v 1.2 2001/03/12 17:00:46 paf Exp $ + $Id: table.C,v 1.5 2001/03/12 18:19:36 paf Exp $ */ #include "pa_request.h" @@ -27,10 +27,11 @@ static void set_or_load( Pool& pool=r.pool(); // data is last parameter Value *vdata=static_cast(params->get(params->size()-1)); - if(vdata->get_junction()) - R_THROW(0, 0, - &method_name, - "body must not be a junction"); + // forcing + // [this param type] + // [this param type] + r.fail_if_junction_(true, *vdata, + method_name, "body must not be a junction"); // data or file_name char *data_or_filename=vdata->as_string().cstr(); @@ -88,6 +89,6 @@ void initialize_table_class(Pool& pool, // ^table.set[data] ^table.set[nameless;data] 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); }