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

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

[Octave-bug-tracker] [bug #63515] logical should convert char and string


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #63515] logical should convert char and strings instead of throwing an error
Date: Mon, 12 Dec 2022 15:20:04 -0500 (EST)

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

                 Summary: logical should convert char and strings instead of
throwing an error
                 Project: GNU Octave
               Submitter: nrjank
               Submitted: Mon 12 Dec 2022 03:20:01 PM EST
                Category: Octave Function
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 12 Dec 2022 03:20:01 PM EST By: Nicholas Jankowski <nrjank>
noting elsewhere that implicit logical conversion on either singly or doubly
quoted strings is performed by:  all, any, not, and, or, !, &, |, &&, and || ,
as well as implicitly within if conditions, it would seem consistent for 

>> logical("str")
error: logical: wrong type argument 'string'
>> logical('chars')
error: logical: wrong type argument 'sq_string'

to convert into logical arrays as well instead of producing an error.









    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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