[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55746] interpreter fails to instantiate class
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #55746] interpreter fails to instantiate classdef with classdef properties |
Date: |
Mon, 11 Mar 2019 18:34:00 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36 |
Update of bug #55746 (project octave):
Status: Works For Me => Confirmed
_______________________________________________________
Follow-up Comment #6:
I can confirm this with the attached, adapted from @arb's example.
It seems like the 'ans' variable is being referenced when the class is parsed
the first time.
If the class is instantiated first, then it works every subsequent time. If
the 'ans' variable is never assigned to or is cleared before parsing the class
the first time, then it works.
>> xxx
error: bool cannot be indexed with .
error: called from
xxx at line 2 column 3
And this is a regression from Octave 5.1, where it works correctly.
(file #46500)
_______________________________________________________
Additional Item Attachment:
File name: xxx.tgz Size:0 KB
<https://savannah.gnu.org/file/xxx.tgz?file_id=46500>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55746>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/