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

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

[Octave-bug-tracker] [bug #60006] Octave crashes when defclass propertie


From: PIERRE LABRECHE
Subject: [Octave-bug-tracker] [bug #60006] Octave crashes when defclass properties reuses named constant
Date: Thu, 4 Feb 2021 15:01:47 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60006>

                 Summary: Octave crashes when defclass properties reuses named
constant
                 Project: GNU Octave
            Submitted by: pierre5018
            Submitted on: jeu. 04 févr. 2021 20:01:45 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

A defclass file NamedConst.m contains the following code:

classdef NamedConst
   properties (Constant)
      R = 1
      D = NamedConst.R
   end
end


Octave crashes upon executing the command :

NamedConst.R


See also the example straight from MATLAB snippet : in  "Define Class
Properties with Constant Values"
https://www.mathworks.com/help/matlab/matlab_oop/properties-with-constant-values.html





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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