comparison src/pt-misc.cc @ 10206:37a08e0ce2dc

support Matlab-style empty output/input arguments
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 27 Jan 2010 12:41:49 +0100
parents cd96d29c5efa
children 57a59eae83cc
comparison
equal deleted inserted replaced
10205:eea99d24adae 10206:37a08e0ce2dc
74 74
75 if (id) 75 if (id)
76 { 76 {
77 std::string name = id->name (); 77 std::string name = id->name ();
78 78
79 if (dict.find (name) != dict.end ()) 79 if (id->is_black_hole ())
80 {
81 if (type != in)
82 error ("invalid use of ~ in output list");
83 }
84 else if (dict.find (name) != dict.end ())
80 { 85 {
81 retval = false; 86 retval = false;
82 error ("`%s' appears more than once in parameter list", 87 error ("`%s' appears more than once in parameter list",
83 name.c_str ()); 88 name.c_str ());
84 break; 89 break;