help-octave
[Top][All Lists]
Advanced

[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.



reply via email to

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