diff src/ov-builtin.cc @ 10184:b39bd23019eb

partially revert a668fbd32e34
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 21 Jan 2010 21:27:16 +0100
parents a668fbd32e34
children 57a59eae83cc
line wrap: on
line diff
--- a/src/ov-builtin.cc	Thu Jan 21 15:41:29 2010 -0500
+++ b/src/ov-builtin.cc	Thu Jan 21 21:27:16 2010 +0100
@@ -105,8 +105,9 @@
       try
 	{
 	  retval = (*f) (args, nargout);
-          // We don't check for null values here, builtins should handle that
-          // possibility themselves.
+          // Do not allow null values to be returned from functions.
+          // FIXME -- perhaps true builtins should be allowed?
+          retval.make_storable_values ();
           // Fix the case of a single undefined value.
           // This happens when a compiled function uses
           //   octave_value retval;