Add seealso strings to list- related functions.

Muthiah Annamalai muthuspost at gmail.com
Mon Jan 14 20:28:17 CST 2008


John W. Eaton wrote:
> On 14-Jan-2008, Muthiah Annamalai wrote:
>
> | I agree. But also lists are currently the only form of return values 
> | from the
> | function dir(),
>
> If that's true, then it's a bug as the list data type should not be
> used anywhere in Octave itself.
>
> But I see
>
>   octave:1> class (dir)
>   ans = struct
>
> with Octave 3.x.  In what case does it return a list for you?
>
> jwe
>
>   
Again, turns out I was mistaken. I wrote code like,

x = dir();

x.name(1)
x.isdir(1)

etc, which werent working. I must have used x(1).name, x(1).isdir etc
which is the correct way, I learnt on seeing dir.m

I used x.name, x.isdir by converting them to lists, and such. Which is
why I had this convoluted way of reasoning it may help.

Sorry for the trouble, and false alarm.

Regards,
-Muthu





More information about the Bug-octave mailing list