[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60254] crash on loading dependent class const
From: |
Paul Netsaver |
Subject: |
[Octave-bug-tracker] [bug #60254] crash on loading dependent class constant properties |
Date: |
Thu, 18 Mar 2021 13:58:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?60254>
Summary: crash on loading dependent class constant properties
Project: GNU Octave
Submitted by: netsaver
Submitted on: Thu 18 Mar 2021 05:58:32 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name: Netsaver Paul
Originator Email:
Open/Closed: Open
Release: 6.2.0
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
from Matlab's help:
classdef NamedConst
properties (Constant)
R = pi/180
D = 1/NamedConst.R
AccCode = '0145968740001110202NPQ'
RN = rand(5)
end
end
Then if I save to NamedConst.m and (after refreshing with 'clear all',
otherwise class definition is not updated) and recall NamedConst.R (or
anyother) from shell command, Octave (6.2) quits after few seconds (with CPU
load and fan speed rapidly increasing).
I can imagine a recursive trap in the loading phase, where D is constant,
because assigned only one time, but dependent on R.
It's like at D definition time, it cannot find temporary class structure in
order to get R and has to reload again the definition...
I didn't classify as Matlab incompatibility as I don't know if the wanted
Octave feature it to clone this capability or we should avoid dependent
constant properties...
Can someone try to repeat it?
Thanks and regards,
Paul Netsaver, Rome
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60254>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60254] crash on loading dependent class constant properties,
Paul Netsaver <=