changeset 25111:959d6c3da166 stable

undo previous change for handles to nested functions Backed out changeset daff5efe062f
author John W. Eaton <jwe@octave.org>
date Wed, 04 Apr 2018 06:05:27 -0400
parents d890fdd23c95
children 623388e8f8fd 476fc012d09a
files libinterp/octave-value/ov-fcn-handle.cc test/nest/nest.tst
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn-handle.cc	Wed Apr 04 10:44:15 2018 +0200
+++ b/libinterp/octave-value/ov-fcn-handle.cc	Wed Apr 04 06:05:27 2018 -0400
@@ -92,6 +92,9 @@
       if (uf_scope)
         uf_scope.cache_name (nm);
     }
+
+  if (uf && uf->is_nested_function () && ! uf->is_subfunction ())
+    error ("handles to nested functions are not yet supported");
 }
 
 octave_value_list
--- a/test/nest/nest.tst	Wed Apr 04 10:44:15 2018 +0200
+++ b/test/nest/nest.tst	Wed Apr 04 06:05:27 2018 -0400
@@ -60,7 +60,7 @@
 %! assert (f("foo"), "nested foo");
 %! assert (f("foo"), "nested foo");
 
-%!test <*39257>
+%!test <39257>
 %! f = no_closure (1);
 %! assert (f(), "nested");
 %! assert (f("foo"), "nested foo");