diff libinterp/parse-tree/lex.h @ 30321:2ba4758654ca

deprecate ** and .** operators (bug #60882) * lex.h, lex.ll (base_lexer::warn_deprecated_operator): New function. (CMD_OR_DEPRECATED_OP): New macro. (".**", "**"): Use it. * basics.txi, expr.txi, vectorize.txi: Eliminate descriptions of the '**' and '.**' operators from the manual.
author John W. Eaton <jwe@octave.org>
date Mon, 22 Nov 2021 16:22:54 -0500
parents c41fec3367b0
children 91c6288781ba 796f54d4ddbf
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h	Mon Nov 22 15:41:42 2021 -0500
+++ b/libinterp/parse-tree/lex.h	Mon Nov 22 16:22:54 2021 -0500
@@ -693,6 +693,10 @@
 
     void warn_deprecated_syntax (const std::string& msg);
 
+    void warn_deprecated_operator (const std::string& deprecated_op,
+                                   const std::string& recommended_op,
+                                   const std::string& version);
+
     void push_token (token *);
 
     token * current_token (void);