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

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

[Octave-bug-tracker] [bug #51296] classdef constructor call fails when p


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #51296] classdef constructor call fails when parentheses are omitted
Date: Thu, 22 Jun 2017 19:58:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

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

                 Summary: classdef constructor call fails when parentheses are
omitted
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Thu 22 Jun 2017 04:58:27 PM PDT
                Category: Interpreter
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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:


>> m = containers.Map ();
>> keys (m)
ans = {}(1x0)
>> m.keys ()
ans = {}(1x0)
>>
>> m = containers.Map;  ## this should return the same thing
>> m
>> m.keys
error: method `keys' is not static


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.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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