Possible regression in classdef

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Possible regression in classdef

Richard Crozier
On a recent classdef tip ( 6762a6d23010+ (classdef) ), calling the  
parent constructor of a class using the @ syntax with an argument no  
longer works (I thought it did previously, but maybe I'm mistaken).  
Using the attached files I get:

>> t = testchild(true)
parse error near line 14 of file /home/richard/octave/test/testchild.m

   syntax error

>>>             this = this@testparent(init);
                                            ^

warning: possible memory leak in cleanup following parse error
warning: possible memory leak in cleanup following parse error
warning: possible memory leak in cleanup following parse error
warning: possible memory leak in cleanup following parse error


I don't get the error if the constructor of the parent does not take  
an argument.

Richard

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


testparent.m (507 bytes) Download Attachment
testchild.m (377 bytes) Download Attachment