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

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

[Octave-bug-tracker] [bug #62211] Space behaviour for operators


From: anonymous
Subject: [Octave-bug-tracker] [bug #62211] Space behaviour for operators
Date: Tue, 22 Mar 2022 13:49:58 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62211>

                 Summary: Space behaviour for operators
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 22 Mar 2022 05:49:56 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Take `5.^2` and insert spaces between `5` and `.`, between `.` and `^`, and
between `^` and `2`. The possible bug is that expressions 3 and 4 do not give
errors though they separate `.^` into `. ^`. Can someone verify?

```

octave:1> 5.^2
ans = 25
octave:2> 5.^ 2
ans = 25
octave:3> 5. ^2
ans = 25
octave:4> 5. ^ 2
ans = 25
octave:5> 5 .^2
ans = 25
octave:6> 5 .^ 2
ans = 25
octave:7> 5 . ^2
error: parse error:

  syntax error

>>> 5 . ^2
        ^
octave:7> 5 . ^ 2
error: parse error:

  syntax error

>>> 5 . ^ 2
        ^

```





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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