octave-maintainers
[Top][All Lists]
Advanced

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

Re: Possible (summer of code) projects for Octave


From: Ben Abbott
Subject: Re: Possible (summer of code) projects for Octave
Date: Wed, 05 Jan 2011 21:49:47 -0500

On Jan 5, 2011, at 8:33 PM, John W. Eaton wrote:

> On  5-Jan-2011, bpabbott wrote:
> 
> | One feature of the new OOP is that an object's methods can modify itself.
> 
> I think that is true only if it is a handle class object, not a value
> class.
> 
> | Take a look at ML's inputParser.
> | 
> | http://www.mathworks.com/help/techdoc/ref/inputparser.html
> | 
> | The scheme for an inputparser object, "p", can be modified by its methods. 
> For
> | example ...
> | 
> | p.addRequired('filename', @ischar);
> 
> Try
> 
>  isa (p, 'handle')

You are correct.

        >> isa (p, 'handle')
        ans = 1

Ben



reply via email to

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