|
From: | Richard |
Subject: | [Octave-bug-tracker] [bug #56596] Double plus with no space before number is legal in Matlab but not Octave |
Date: | Mon, 8 Jul 2019 18:04:03 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0 |
URL: <https://savannah.gnu.org/bugs/?56596> Summary: Double plus with no space before number is legal in Matlab but not Octave Project: GNU Octave Submitted by: crobar Submitted on: Mon 08 Jul 2019 10:04:02 PM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Richard Crozier Originator Email: Open/Closed: Open Discussion Lock: Any Release: 5.1.0 Operating System: Any _______________________________________________________ Details: In Matlab the following is legal: >> 1 ++1 ans = 2.0000e+000 >> 1 + +1 ans = 2.0000e+000 >> 1 ++ 1 ans = 2.0000e+000 But in Octave it the first is an error: >> 1 ++1 parse error: syntax error >> 1 + + 1 ans = 2 >> 1 ++ 1 parse error: syntax error I couldn't find this on the bug tracker, but it's difficult to search for. Perhaps it is known and thought not worth fixing given the simple workaround. I only discovered it in my own code due to a typo. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56596> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |