[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8152] classdef: Fix crash when indexing c
From: |
Rik |
Subject: |
[Octave-patch-tracker] [patch #8152] classdef: Fix crash when indexing classdef object with empty parentheses. |
Date: |
Tue, 21 Apr 2015 16:24:12 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 |
Follow-up Comment #1, patch #8152 (project octave):
@Philipp: Could you re-generate your patch against a more recent version of
the Mercurial source tree? I used hg import and the patch applied, but at a
fuzzy offset of 450 lines. And when I went to test I still got a segfault so
I don't think the patch applied cleanly.
Test object in foo.m
classdef foo < handle
properties
child
parent
end
end
Test code
x = foo ();
x.child = 23;
x()
Another consideration, shouldn't null indexing just return the object itself
rather than generate an error?
For matrices this is the case
x = 1:10;
y = x()
y =
1 2 3 4 5 6 7 8 9 10
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8152>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8152] classdef: Fix crash when indexing classdef object with empty parentheses.,
Rik <=