[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56816] calling classdef methods with the dot-
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-bug-tracker] [bug #56816] calling classdef methods with the dot-syntax from an old-style method fails |
Date: |
Tue, 27 Aug 2019 09:10:04 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36 |
Update of bug #56816 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
Thank you for the report.
I just made sure, that it is no regression. Your example did not work in
4.2.2, 4.4.1, and 5.1.0 either.
To give a short overview:
.
├── @bar # classdef
│ └── bar.m
├── @foo # old style class
│ ├── foo.m
│ ├── meth1.m
│ └── meth2.m
└── runtest.m
with
function x = meth1(o)
z = bar;
x = meth(z);
endfunction
function x = meth2(o)
z = bar;
x = z.meth; # Error with or without assignment to x!
endfunction
runtest.m
o = foo;
meth1(o);
meth2(o); # Error
The error message:
>> runtest
error: class not found: foo
error: called from
meth2 at line 3 column 5
runtest at line 3 column 1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56816>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/