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

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

[Octave-bug-tracker] [bug #43815] ["ab" 99] produces single-quoted strin


From: Rik
Subject: [Octave-bug-tracker] [bug #43815] ["ab" 99] produces single-quoted string 'abc'
Date: Sun, 14 Dec 2014 00:59:01 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0

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

                 Summary: ["ab" 99] produces single-quoted string 'abc'
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Sat 13 Dec 2014 04:59:00 PM PST
                Category: Interpreter
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

This is just an oddity, and I'm not sure it has any relevance.

When concatenating a double-quoted string with a number the result is a
single-quoted string.  However, I suspect the rationale is that double-quoted
string + ! double-quoted string = single-quoted string.

Thus, adding a single-quoted string, or a number counts as a non-double-quoted
string and the result is therefore a single-quoted string.


octave:1> x = ["ab" 99]
x = abc
octave:2> is_dq_string (x)
ans = 0






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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