array of structures does not display properly

John W. Eaton jwe at bevo.che.wisc.edu
Fri Mar 7 09:06:29 CST 2008


On  7-Mar-2008, Ben Abbott wrote:

| Bug report for Octave 3.0.0+ configured for i386-apple-darwin9.2.0
| 
| Description:
| -----------
| 
|    * Arrays of structures do not display to the console properly. I  
| tried to build from current sources, but that failed. So it may be  
| that this problem has already been resolved. Can some one confirm?
| 
| Repeat-By:
| ---------
| 
|    * "x = dir"
| 
| octave:1> x = dir
| x =
| {
|    name =
| 
| error: octave_base_value::print (): wrong type argument `cs-list'

Please try the following patch.  With it, Octave should not print the
contents of struct arrays that have more than one element.  Instead,
it simply prints the field names.  If a struct array has one element,
it is be printed as before, and the number of levels to print is still
controlled by the struct_levels_to_print internal variable.

jwe


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080307/b8ccc632/attachment-0001.ksh 


More information about the Bug-octave mailing list