|
From: | David Bateman |
Subject: | Re: thoughts on onCleanup and handle classes |
Date: | Tue, 18 May 2010 21:33:03 +0200 |
User-agent: | Mozilla-Thunderbird 2.0.0.22 (X11/20090706) |
Jaroslav Hajek wrote:
The ftp objects are implemented as an old style class, with all the real work done by an oct-file __ftp__.oct that doesn't handle the classes at all. I don't think it has to depend on any functionality of new style matlab classes..An existing instance is the ftp object by D.B. (here the handle is actually an internal property, ftp.curlhandle). Another useful thing would be a file object that can close itself automatically. Actually, with onCleanup, one can simulate the destructor in a rather neat way:
D.
[Prev in Thread] | Current Thread | [Next in Thread] |