accessing struct as struct array rearranges field order
Willem Atsma
octave at wylch.fastmail.fm
Thu Oct 30 15:45:44 CDT 2008
Not urgent in any way, but it has broken some of my code.
When I create a structure with a specific order they are rearranged
depending on how I access them.
D = struct("c",1,"b",5)
fieldnames(D) % returns correct order
fieldnames(D(1)) % returns fields in alphabetical order
I assume orderfields is called somewhere when using subreferences.
version: 3.0.1
windoze XP, version from octave-forge
Willem
More information about the Bug-octave
mailing list