Add seealso strings to list- related functions.
Muthiah Annamalai
muthuspost at gmail.com
Wed Jan 16 01:04:59 CST 2008
Søren Hauberg wrote:
> 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
>
>
>
Makes sense.
Again, Im sorry, I made comments without seeing what you really meant,
or trying
out on Matlab. Also I assumed adding this feature to Octave was hard.
Wrong on
both counts :-)
Thanks,
-Muthu
More information about the Bug-octave
mailing list