bugGNU Octave - Bugs: bug #51296, classdef constructor call fails...

 
 

bug #51296: classdef constructor call fails when parentheses are omitted

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Thu 22 Jun 2017 11:58:27 PM UTC  
 
Category: InterpreterSeverity: 4 - Important
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 30 Jun 2017 10:42:38 PM UTC, comment #4:

Also verified that this works now. Closing report.

Rik <rik5>
Project Administrator
Fri 23 Jun 2017 11:29:13 PM UTC, comment #3:

This works for me now.

Mike Miller <mtmiller>
Project Administrator
Fri 23 Jun 2017 10:25:21 PM UTC, comment #2:

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/ffd27f53fc79

I'm not super happy with this change, but I don't see another way to do it at the moment. It does seem to work though, and also seems to fix the problem for bug #51295.

John W. Eaton <jwe>
Project Administrator
Fri 23 Jun 2017 02:20:35 AM UTC, comment #1:

I neglected to mention that this applies only to classdef classes that are in a +package directory.

So that makes sense that this is a result of this change related to indexing (see also bug #51152 caused by the same change).

Mike Miller <mtmiller>
Project Administrator
Thu 22 Jun 2017 11:58:27 PM UTC, original submission:

Since changeset 551fa3879615 (https://hg.savannah.gnu.org/hgweb/octave/rev/551fa3879615) it's no longer possible to call a classdef constructor without parentheses

Using the containers.Map class that is part of Octave now as an example:

It looks like "containers.Map" is returning some kind of reference to the class constructor function while "containers.Map()" is calling it correctly. Running "m()" does seem to return a new object.

Mike Miller <mtmiller>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Jun 2017 10:42:38 PM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Fri 23 Jun 2017 10:25:21 PM UTCjweStatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup1