[Top][All Lists]

[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: John W. Eaton
Subject: [Octave-bug-tracker] [bug #62552] In-place operator spacing works for 'i' and 'j', but not other variable names
Date: Fri, 3 Jun 2022 10:11:58 -0400 (EDT)

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

Yeah, it is long.

Thanks for catching the edit error.

Do you think what I wrote helps with understanding the issues?  It seems there
is a lot of confusion about this feature.

It appears that where Octave is doing

if (is_var && is_word_list_cmd ())
  error ("%s used as variable and later as function", nm.c_str ());

Matlab is now doing something like

if (is_word_list_cmd ())
     // Search for function only since this appears to be a command-style
function call.  If a function is found, call it with remaining arguments.  If
not found, error with "unrecognized function or variable" message.

That explains their error message.


Reply to this item at:


Message sent via Savannah

reply via email to

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