Implicit print bug in IDL 8.4? [message #89573] |
Mon, 27 October 2014 14:27  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
Hello,
I just spent a long time trying to figure out what was wrong with my code, because it seemed that somewhere any whitespace was being removed from my strings in structure fields. As it turns out, the strings were ok, and it was the implicit print that was showing my strings without them:
IDL> a={b:'c d'}
IDL> a
{
"B": "cd"
}
IDL> print,a
{ c d}
This only seems to happen when I use implicit print on structures. If I use it on strings, all is well:
IDL> a.b
c d
I checked, and this issue did not happen in 8.3:
IDL> a={b:'c d'}
IDL> a
{
B: "c d"
}
To me, this looks like a bug, and given this unexpected change in behavior from 8.3 to 8.4, I think others may get caught in this same trap.
|
|
|
|
|