octave-maintainers
[Top][All Lists]
Advanced

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

help needed to understand handles to classdef methods


From: John W. Eaton
Subject: help needed to understand handles to classdef methods
Date: Mon, 25 Feb 2019 15:52:13 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

Could someone run the following test in a recent version of Matlab and post the results?

Save the attached file as method_handle.m and then execute the following commands at the Matlab prompt. Some may generate errors.

x = method_handle ()
x.bar (1)
x.bar (2)
x.bar (3)
[h1, h2, h3] = x.get_handles ()
h1 (x, 1)
h2 (x, 2)
h3 (x, 3)
x.h1 (1)
x.h2 (2)
x.h3 (3)

This test is related to bug #45351. I'm trying to understand both syntax that is allowed and access restrictions.

Thanks,

jwe

Attachment: method_handle.m
Description: Text Data


reply via email to

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