symbolic icon indicating copy to clipboard operation
symbolic copied to clipboard

Make the sym class a new-style classdef class

Open cbm755 opened this issue 8 years ago • 3 comments

Possibly this allows fixing #13.

Good chance to learn more about Octave OO programming. Maybe @latot is interested?

cbm755 avatar Sep 07 '16 20:09 cbm755

Yay! i'm interested, and to start: https://es.mathworks.com/help/matlab/matlab_oop/getting-familiar-with-classes.html

We must be careful, i don't know if all functions of classdef are available in octave.

latot avatar Sep 08 '16 02:09 latot

You might look at @pyobject which is classdef and works properly:

https://bitbucket.org/mtmiller/pytave/src/d0a7f66393fcaeaad789d83c41462ed6a4c353ed/@pyobject/?at=default

cbm755 avatar Sep 08 '16 04:09 cbm755

There are some limitations in the Octave implementation of classdef to watch out for. The simplest thing to do would be to change @sym/sym.m to define the class and constructor only, and all methods defined in separate .m files should still work as-is.

mtmiller avatar Sep 14 '16 17:09 mtmiller