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

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

[Octave-bug-tracker] [bug #51285] max_recursion_depth error in classdef


From: Rik
Subject: [Octave-bug-tracker] [bug #51285] max_recursion_depth error in classdef constructor
Date: Tue, 30 Jan 2024 17:17:21 -0500 (EST)

Update of bug#51285 (group octave):

                  Status:                    None => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

The test code when run with the development code for Octave 10.1, produces an
error about constructing the classdef object, rather than a
max_recursion_depth error.


error: mark_as_constructed: invalid object


I think this is fine.  The constructor for a classdef object must return one
object, not an object array.  It's true that "obj(1)" and "obj" should be the
same thing, but enabling the parser to handle this special case doesn't seem
worth it given how trivial the workaround is.

Marking as Won't Fix and closing report.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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