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

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

[Octave-bug-tracker] [bug #49169] overriding @super/class method, builti


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #49169] overriding @super/class method, builtin class can't be called from @sub/sub constructor
Date: Tue, 27 Sep 2016 21:53:51 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Update of bug #49169 (project octave):

                  Status:               Need Info => Confirmed              

    _______________________________________________________

Follow-up Comment #13:

Ok, so it's clear that we should allow class() to be called via builtin() from
a class ctor function.

I don't know enough about how to traverse the Octave call stack to implement
this. It is easy enough to call called_from_builtin() to detect that class()
was called by builtin, but I don't easily see how to get a reference to one
higher in the call stack to make sure we are in a class ctor of the same name
as the 2nd argument.

If someone can supply a patch to do this, I'll be happy to test and apply.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49169>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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