[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51285] max_recursion_depth error in classdef
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #51285] max_recursion_depth error in classdef constructor |
Date: |
Wed, 21 Jun 2017 05:55:59 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?51285>
Summary: max_recursion_depth error in classdef constructor
Project: GNU Octave
Submitted by: gyom
Submitted on: Wed 21 Jun 2017 09:55:57 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Out of curiosity, I was testing further @gramm and came across an infinite
recursion at the highlighted lines:
https://github.com/piermorel/gramm/blob/master/%40gramm/gramm.m#L180
https://github.com/piermorel/gramm/blob/master/%40gramm/set_names.m#L29
To reproduce it, use the following class:
classdef recurse
properties
value = [];
endproperties
methods
function obj = recurse ()
obj(1).value.prop = 42;
endfunction
endmethods
endclassdef
Calling the constructor returns:
octave:1> recurse
error: max_recursion_depth exceeded
error: called from
recurse at line 7 column 25
This disappears if obj.value is used instead of obj(1).value.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51285>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #51285] max_recursion_depth error in classdef constructor,
Guillaume <=