[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: override display() for class
From: |
Jaroslav Hajek |
Subject: |
Re: override display() for class |
Date: |
Sun, 12 Dec 2010 21:51:48 +0100 |
On Sat, Dec 11, 2010 at 9:38 PM, Steve White <address@hidden> wrote:
>
> Hi again Pascal,
>
> Thanks for checking Matlab's behavior!
>
> As I understand it, there is no way in Octave to achieve this behavior
> (which seems very natural), and that to you, since Matlab also seems to
> lack any way to achieve it, the behavior is not "valid".
>
> So I'l lead to propose that a switch be added to Octave, which would turn
> on ecohing of statements assigning variables to class objects in a way
> similar to that for built-in types. This way, Octave would by default emulate
> MatLab, but could be made to behave in a way more natural to
> object-oriented programmers.
>
> Is it worth a feature request?
>
> I don't mean to sound impudent. I've only been working with Octave for a
> couple of weeks, so I'm not clear on the attitude of the community to changes
> that would diverge from MatLab, or to new ideas in general...
>
> Cheers!
What you need is possible using "argn". Check out the dict class from
the general package to find out how to do this.
- override display() for class, Steve White, 2010/12/09
- Re: override display() for class, CdeMills, 2010/12/10
- RE: override display() for class, Steve White, 2010/12/10
- RE: override display() for class, CdeMills, 2010/12/10
- RE: override display() for class, Steve White, 2010/12/11
- Re: override display() for class,
Jaroslav Hajek <=
- RE: override display() for class, Steve White, 2010/12/12
- Re: override display() for class, CdeMills, 2010/12/13
- Re: override display() for class, Ben Abbott, 2010/12/13
- Re: override display() for class, John W. Eaton, 2010/12/13
- Re: override display() for class, bpabbott, 2010/12/13
- Re: override display() for class, John W. Eaton, 2010/12/13
- Re: override display() for class, bpabbott, 2010/12/13
- Re: override display() for class, John W. Eaton, 2010/12/13
- RE: override display() for class, Steve White, 2010/12/15