--- parser3/src/classes/table.C 2001/03/12 17:16:48 1.3 +++ 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.3 2001/03/12 17:16:48 paf Exp $ + $Id: table.C,v 1.5 2001/03/12 18:19:36 paf Exp $ */ #include "pa_request.h" @@ -27,6 +27,9 @@ static void set_or_load( Pool& pool=r.pool(); // data is last parameter Value *vdata=static_cast(params->get(params->size()-1)); + // forcing + // [this param type] + // [this param type] r.fail_if_junction_(true, *vdata, method_name, "body must not be a junction"); @@ -86,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); }