diff src/data.cc @ 3215:bc3fdfe311a3

[project @ 1998-11-10 14:06:21 by jwe]
author jwe
date Tue, 10 Nov 1998 14:12:07 +0000
parents bf61c443a366
children 041ea33fbbf4
line wrap: on
line diff
--- a/src/data.cc	Fri Nov 06 16:24:13 1998 +0000
+++ b/src/data.cc	Tue Nov 10 14:12:07 1998 +0000
@@ -782,7 +782,7 @@
 }
 
 DEFUN (isempty, args, ,
-  "isempty (x): return nonzero if x is an empty matrix or empty list")
+  "isempty (x): return nonzero if x is an empty matrix, string, or list")
 {
   double retval = 0.0;
 
@@ -792,7 +792,7 @@
 
       if (arg.is_matrix_type ())
 	retval = static_cast<double> (arg.rows () == 0 || arg.columns () == 0);
-      else if (arg.is_list ())
+      else if (arg.is_list () || arg.is_string ())
 	retval = static_cast<double> (arg.length () == 0);
     }
   else