Class Objects Usage
John W. Eaton
jwe at bevo.che.wisc.edu
Tue Jul 8 14:28:47 CDT 2008
On 8-Jul-2008, Michael Goffioul wrote:
| On Tue, Jul 8, 2008 at 9:10 PM, Michael Goffioul
| <michael.goffioul at gmail.com> wrote:
| > I can reproduce the problem. I'll have a look.
|
| I debugged a little bit with my code, which corresponds to the graphics
| archive (not the latest octave archive, but quite close). The problem is
| that in Fclass, fcn->is_class_constructor() returns false (I use the same
| polynom example). At that point, fcn is actually the "class" function of
| type octave_builtin, while I think the expected value is the "polynom"
| function. I stepped into the previous octave_call_stack::caller() call and
| it appears that the callstack contains 2 elements:
| [0]: polynom
| [1]: class
| and octave_call_stack::caller() actually returns the second one.
|
| Might this be related to the uncommited change in octave_call_stack
| that you mentioned in another mail?
Yes, it could be. I think I checked in at least one intermediate set
of changes while I was fixing the call stack code. I'd suggest
updating and see if that fixes the problem. If not, then we can look
deeper.
jwe
More information about the Octave-maintainers
mailing list