octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i' and 'j', but not other variable names
Date: Wed, 1 Jun 2022 14:51:36 -0400 (EDT)

Follow-up Comment #7, bug #62552 (project octave):

This cosmetic change might help guide new users. Thoughts?


diff -r d5997bbdb641 libinterp/parse-tree/pt-idx.cc
--- a/libinterp/parse-tree/pt-idx.cc    Tue May 31 23:34:23 2022 -0400
+++ b/libinterp/parse-tree/pt-idx.cc    Wed Jun 01 14:41:18 2022 -0400
@@ -366,7 +366,7 @@ namespace octave
         std::string nm =  id->name ();
 
         if (is_var && is_word_list_cmd ())
-          error ("%s used as variable and later as function", nm.c_str ());
+          error ("%s used as variable and later as function. Hint:
inconsistent spacing around operators?", nm.c_str ());
 
         if (! is_var)
           {




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62552>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]