diff libinterp/parse-tree/pt-id.h @ 15576:6ea536cb7360 classdef

maint: periodic merge of default to classdef
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 01 Nov 2012 15:01:20 -0400
parents 947cf10c94da 44d6ffdf9479
children 0259254a3ccc
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-id.h
+++ b/libinterp/parse-tree/pt-id.h
@@ -110,6 +110,12 @@
 
   void eval_undefined_error (void);
 
+  void static_workspace_error (void)
+  {
+    ::error ("can not add variable \"%s\" to a static workspace",
+             name ().c_str ());
+  }
+
   tree_identifier *dup (symbol_table::scope_id scope,
                         symbol_table::context_id context) const;