diff src/ov-typeinfo.cc @ 4687:e95c86d48732

[project @ 2004-01-06 21:53:34 by jwe]
author jwe
date Tue, 06 Jan 2004 21:53:34 +0000
parents 2d237a76dbdd
children 35bfb4e0b96b
line wrap: on
line diff
--- a/src/ov-typeinfo.cc
+++ b/src/ov-typeinfo.cc
@@ -148,6 +148,9 @@
     ? instance->do_register_widening_op (t, t_result, f) : false;
 }
 
+// XXX FIXME XXX -- we should also store all class names and provide a
+// way to list them (calling class with nargin == 0?).
+
 int
 octave_value_typeinfo::do_register_type (const std::string& t_name,
 					 const std::string& c_name,
@@ -339,6 +342,7 @@
       if (nm == types(i))
 	{
 	  retval = vals(i);
+	  retval.make_unique ();
 	  break;
 	}
     }