Bug in function gzip...
John W. Eaton
jwe at bevo.che.wisc.edu
Mon Jan 7 09:12:19 CST 2008
On 7-Jan-2008, David Bateman wrote:
| If this is a difference between 3.0.0 and 3.0.0+ then I'd say its a
| difference in the treatment of anonymous versus normal function handles
| in the object classes code. It looks like there is a nasty bug in there
| somewhere as the two versions of the cellfun call above should produce
| the same result.
The bug is that
f = @(x) fileparts (x)
[dir, file, ext] = f ("dir/file.ext");
doesn't work when it apparently should. At least part of the bug is
in make_anon_fcn_handle in parse.y. That function is taking
@(x) expression
and generating the equivalent of
function __retval__ = anon_fcn (x)
__retval__ = expression;
endfunction
I'm not sure of the correct fix yet.
jwe
More information about the Bug-octave
mailing list