Add seealso strings to list- related functions.
John W. Eaton
jwe at bevo.che.wisc.edu
Tue Jan 15 17:03:05 CST 2008
On 14-Jan-2008, Muthiah Annamalai wrote:
| 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.
Given a struct array like X above,
x.field
produces a comma-separated list, which is different from a list
object. A comma-separated list can only be displayed, used as an
argument list for another function, or used to construct a cell array
or matrix with the {} or [] operators.
Maybe we should change the way comma-separated lists are displayed to
help avoid the confusion.
jwe
More information about the Bug-octave
mailing list