[Top][All Lists]

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

[Octave-bug-tracker] [bug #52582] Dependent constant properties in class

From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #52582] Dependent constant properties in classdef errors: no such file
Date: Sun, 3 Mar 2019 16:24:00 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #13, bug #52582 (project octave):

With the code from comment #8 I can get a segfault simply by trying to create
an instance of the class.  Looking at a stack trace, the parser is being
called recursively while trying to create the meta class object, while
evaluating the properties block.  There is a comment in the cdef-class.cc file
that that is not exactly about this issue, but it seems relevant:

// Property blocks

// FIXME: default property expression should be able to call static
//        methods of the class being constructed.  A restricted CLASSNAME
//        symbol should be added to the scope before evaluating default
//        value expressions.

I'm not sure of the details, but it seems we need to do what that comment
suggests and register the partially constructed object so that we can use it
(at least as much as has been constructed so far) to complete the
initialization and fully construct the meta object.


Reply to this item at:


  Message sent via Savannah

reply via email to

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