bugGNU Octave - Bugs: bug #59023, changed class name:...

 
 

bug #59023: changed class name: "inline" instead of "function_handle" (or "inline function")

Submitter:  Hartmut <hardy>
Submitted:  Thu 27 Aug 2020 09:36:41 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.0.90 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 01 Sep 2020 03:37:45 PM UTC, comment #2: 

I added some notes about the new behavior in the NEWS file for release 6.1.  See changeset 1f6b21015b4e.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 27 Aug 2020 10:13:20 PM UTC, comment #1: 

Sorry about the incompatibility with previous versions of Octave.

In Matlab, the class of an inline function is also "inline".  So this is a compatibility improvement.

Also in Matlab, the "inline" function seems to no longer appear in the online docs on the web, though it does still exist.  Help for inline says that it will be removed in a future version.

Yes, it should probably be mentioned in the NEWS file.

John W. Eaton <jwe>
Group administrator
Thu 27 Aug 2020 09:36:41 PM UTC, original submission:  

Here is how to reproduce this behavior. In the Octave 6.0.90 release candidate I see this:


>> f=inline("sum(x)", "x")
warning: inline is obsolete; use anonymous functions instead
f =

  <class inline>

>> class(f)
ans = inline


Where as in Octave 5.2.0 I see:


>>  f=inline("sum(x)", "x")
f = f(x) = sum(x)
>> class(f)
ans = function_handle


In some earlier Octave version the name of this class seems to also have been "inline function". (At least our quite old blockproc.m in the image package checks for this class name. See bug #59022, where this first popped up for me.)

I think that Octave's inline function now turned obsolete with Octave 6 (even though I could not find a mention of this in the NEWS file of Octave 6.0.90), but it seems to be still "alive" in Octave 6.

Questions:

  • Is this (backwards incompatible) change of the class name intentional? Or could we also stick with the old name (to make life easier for Octave packages that want to stay compatible to older Octave releases)?
  • Shouldn't we mention the obsolete'ness of inline.m in the NEWS file of Octave 6?
Hartmut <hardy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by hardy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-01 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code