Add seealso strings to list- related functions.
Søren Hauberg
soren at hauberg.org
Wed Jan 16 13:00:52 CST 2008
ons, 16 01 2008 kl. 00:50 -0600, skrev Muthiah Annamalai:
> I think such compatibility, IMHO, is quite useless. What can we do with
> a half-baked assign operator? I dont see much returns for actually going
> and implementing such a feature. Who knows, this maybe a side-effect
> of the Matlab-parser.
I see some sense in this behaviour. If I write
a = 1,2,3,4,5,6,7
then the interpreter would assign a the value 1, and treat 2,3,4,5,6,7
as six separate expressions. If I now define a cell array that contains
the values 1 to 7,
c = {1,2,3,4,5,6}
Now, c{:} gives me the following comma separated list: 1,2,3,4,5,6,7. If
I write
a = c{:}
in an un-patched Octave I would get an error even if this expression is
conceptually the same as the first expression. So, why should these
expressions be different?
Søren
More information about the Bug-octave
mailing list