octave-maintainers
[Top][All Lists]
Advanced

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

Re: thoughts on onCleanup and handle classes


From: Jaroslav Hajek
Subject: Re: thoughts on onCleanup and handle classes
Date: Wed, 19 May 2010 06:46:21 +0200

On Tue, May 18, 2010 at 9:33 PM, David Bateman <address@hidden> wrote:
> Jaroslav Hajek wrote:
>>
>> 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:
>>
>
> 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..
>

I know, what I meant was that it behaves like a handle, i.e. if you
copy the ftp object, you don't have two connections, but rather two
"handles" to the same connection, IIRC.


-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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