octave-maintainers
[Top][All Lists]
Advanced

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

Re: 'cla reset' clears user properties?


From: Julien Bect
Subject: Re: 'cla reset' clears user properties?
Date: Thu, 23 Jan 2014 21:23:25 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 23/01/2014 19:30, Rik wrote:
What do people think the following code should do?

close all
hax = gca;
addproperty ("__foobar__", hax, "data", [1 2])
cla reset
isprop (hax, "__foobar__")

Matlab doesn't have addproperty, but the following experiment is informative :

close all; set (gca, 'UserData', 333); cla; get (gca, 'UserData') % returns 333

close all; set (gca, 'UserData', 333); cla reset; get (gca, 'UserData') % returns []


Thus, IMO, "cla reset" should at least clear the content of user properties, if not completely remove the properties.

@++
Julien



reply via email to

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