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

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

[Octave-bug-tracker] [bug #39032] parsing comma after line break


From: Clemens Buchacher
Subject: [Octave-bug-tracker] [bug #39032] parsing comma after line break
Date: Tue, 21 May 2013 16:45:03 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

URL:
  <http://savannah.gnu.org/bugs/?39032>

                 Summary: parsing comma after line break
                 Project: GNU Octave
            Submitted by: drizzd
            Submitted on: Tue 21 May 2013 04:45:02 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Clemens Buchacher
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

This is valid in Matlab 2011b, but not in Octave:

octave:1> [0
> ,1]
parse error:

  syntax error

>>> ,1]
    ^

Matlab output:

>> [0
,1]

ans =

     0
     1

>> [0, 1
, 2, 3]

ans =

     0     1
     2     3

If the line break happens after the comma, Octave is fine with it:

octave.exe:9> [1,
> 0]
ans =

   1
   0




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39032>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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