[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49421] Can't set properties in a subclass aft
From: |
Ll |
Subject: |
[Octave-bug-tracker] [bug #49421] Can't set properties in a subclass after chaining constructors in base class |
Date: |
Fri, 28 Oct 2016 16:56:21 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36 |
Follow-up Comment #6, bug #49421 (project octave):
Hi, i think i found a related thing, i can confirm the example posted here
keep the derived subclass, so testing i found, if i don't init the subclass
symfun, its created as a sym class....
This don't happen in the examples posted here, but for some reason the sym
superclass overwrite the subclass when the subclass is created (you don't need
call anything, only set it as a superclass).
The super class sym, the same:
https://github.com/latot/octsympy/blob/bug2/inst/%40sym/sym.m
The subclass symfun:
https://github.com/latot/octsympy/blob/bug2/inst/%40symfun/symfun.m
The subclass only print the class of self:
symfun(1, 2)
ans = sym
ans = (sym) 0
Examples works:
octave:8> class(derived(1))
ans = derived
Thx. Cya.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49421>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/