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

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

[Octave-bug-tracker] [bug #65214] Evaluation of properties referencing o


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #65214] Evaluation of properties referencing other properties fails
Date: Fri, 26 Jan 2024 10:22:03 -0500 (EST)

Follow-up Comment #1, bug#65214 (group octave):

I'm attaching a copy of my proposed patch, updated with the bug number.

Does the syntax


    B = MinBug.A * 2


work in Matlab?  That won't work in Octave, even with my change.  But with the
change, you can use


    B = A * 2


If the CLASSNAME.PROPERTY syntax is supposed to work, then the fix for that is
probably similar to the one required for the problem mentioned in this FIXME
note in cdef-class.cc:


      // 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.



(file #55615)

    _______________________________________________________

Additional Item Attachment:

File name: classdef-prop-init.txt         Size:4 KB
    <https://file.savannah.gnu.org/file/classdef-prop-init.txt?file_id=55615>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-bd5dc6a791eeb858c14bff2c54b74c7dcaee57e4.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65214>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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