|
I am puzzled by the following (observed in 2009a 64 bit Linux and 2010a 64 bit Windows):
>> [a, b, c] = deal(1, :, 2);
>> strcmp(b, ':')
ans =
1
I can't fit this into any of my mental schema relating to how things should work, or find any documentation that would explain it. I feel I must be missing something (quite possible at 1 am, as it is here) - can anyone shed any light please?
I can't find a bugreport, but I'm beginning to wonder if I've found a bug.
(For anyone who doesn't see the problem: deal is a function, not an array. You'd expect a naked colon to be meaningless as an argument, and for the first line of my example to cause an error. To get a string back is very strange.)
|