bugGNU Octave - Bugs: bug #45457, Incorrect behavior of constant...

 
 

bug #45457: Incorrect behavior of constant classdef properties referencing other constant properties in the same block

Submitted by:  None
Submitted on:  Wed 01 Jul 2015 06:12:31 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: NoneAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: 4.0.0
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 01 Jul 2015 06:12:31 PM UTC, original submission:

The following classdef, where NamedConst.D references NamedConst.R defined in the same block does not work correctly with Ocatve 4.0.0. In Matlab, this same classdef works correctly according to http://www.mathworks.com/help/matlab/matlab_oop/properties-with-constant-values.html

classdef NamedConst
properties (Constant)
R = pi/180;
D = 1/NamedConst.R;
AccCode = '0145968740001110202NPQ';
RN = rand(5);
end
end

The expected result is that NamedConst.D = 57.296. In Octave 4.0.0, however, NamedConst.D is undefined when accessing it. In addition, all properties defined after "D" are also undefined.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only project members can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1