octave-maintainers
[Top][All Lists]
Advanced

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

Re: [changeset] - have closereq() respect the property "tag"


From: Ben Abbott
Subject: Re: [changeset] - have closereq() respect the property "tag"
Date: Mon, 20 Oct 2008 11:37:23 -0400


On Oct 20, 2008, at 11:28 AM, John W. Eaton wrote:

On  9-Oct-2008, Ben Abbott wrote:

| Presently closereq() checks the handle value to be sure it is not
| equal to 0.
|
| Instead it should check that the handle is assigned to a figure.

Should we also avoid the error for (possibly) calling delete (0)?  I'm
not even sure that can happend, and at least calling delete (0)
doesn't actually delete the root figure, so I suppose this change is
OK.

Thanks,

jwe


In Matlab

        >> get(0,'type')
        ans = root

In Octave

        octave:49> get(0,'type')
        ans = root_figure

So I think we should be ok.

Ben



reply via email to

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