diff src/ov-fcn-handle.h @ 10261:a4fb4675accb

make printing of handles more Matlab-compatible
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 03 Feb 2010 13:35:41 +0100
parents cd96d29c5efa
children f3b65e1ae355
line wrap: on
line diff
--- a/src/ov-fcn-handle.h	Wed Feb 03 12:49:17 2010 +0100
+++ b/src/ov-fcn-handle.h	Wed Feb 03 13:35:41 2010 +0100
@@ -49,13 +49,16 @@
     : fcn (f), nm (n), disp (sdisp) { }
 
 public:
+
+  static const std::string anonymous;
+
   octave_fcn_handle (void)
     : fcn (), nm () { }
 
   octave_fcn_handle (const std::string& n)
     : fcn (), nm (n) { }
 
-  octave_fcn_handle (const octave_value& f,  const std::string& n);
+  octave_fcn_handle (const octave_value& f,  const std::string& n = anonymous);
 
   octave_fcn_handle (const octave_fcn_handle& fh)
     : octave_base_value (fh), fcn (fh.fcn), nm (fh.nm)