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

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

[Octave-bug-tracker] [bug #49169] overriding @super/class method, builti


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #49169] overriding @super/class method, builtin class can't be called from @sub/sub constructor
Date: Tue, 27 Sep 2016 18:42:24 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #5, bug #49169 (project octave):

Matlab:


>> type @bar/class

function s = class (x, varargin)
  error ('bar.class: this should not be called');
end
>> f = foo()
Error using bar/class (line 2)
bar.class: this should not be called

Error in foo (line 3)
  x = class (x, 'foo', bar);
 


And it works using `builtin`...

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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