gdl
gdl copied to clipboard
different behaviour between IDL and GDL in formatted output
GDL writes an additional comma at the end if the output is only a single number.
IDL> print,String(FORMAT = '(1(I1, :, ", "))', [1,1])
1, 1
IDL> print,String(FORMAT = '(1(I1, :, ", "))', [1])
1
GDL> print,String(FORMAT = '(1(I1, :, ", "))', [1,1])
1, 1
GDL> print,String(FORMAT = '(1(I1, :, ", "))', [1])
1,
Nice finding, a bug!