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

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

[Octave-bug-tracker] [bug #44035] unable to subclass built-in types


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #44035] unable to subclass built-in types
Date: Thu, 18 Apr 2019 02:14:42 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Follow-up Comment #3, bug #44035 (project octave):

No, numeric types or structs are not classdef classes in Matlab, even though
they do share a lot of properties with classdef classes. I would say yes to
comment #1, they behave like classdef objects in some cases, but they are not
actually classdef objects.

The 'isobject' function returns false for numeric types, logical, char, cell,
struct, and function handles for example, so they are not classes in that
sense. But they can have overridden methods, they can be used with the
'methods', 'properties', and 'metaclass' functions, and can be subclassed.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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