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

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

[Octave-bug-tracker] [bug #42559] Whitespace before struct selection ope


From: anonymous
Subject: [Octave-bug-tracker] [bug #42559] Whitespace before struct selection operator should be ignored
Date: Sun, 15 Jun 2014 14:06:55 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

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

                 Summary: Whitespace before struct selection operator should
be ignored
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 15 Jun 2014 02:06:54 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Chris Carroll
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When a struct is created implicitly (i.e., by assigning a value to one of its
members), the interpreter does not ignore whitespace before the "." operator.
For example, the code in the following try block triggers an exception.


a.x = 1; % OK

try
  b .x = 1; % produces error: 'b' undefined
catch, fprintf('produces exception!\n'); end

c = struct();
c .x = 1; % OK





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 15 Jun 2014 02:06:54 PM UTC  Name: testStructSyntax.m  Size: 96B  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=31554>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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