comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Implicit print bug in IDL 8.4?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Implicit print bug in IDL 8.4? [message #89573] Mon, 27 October 2014 14:27 Go to previous message
penteado is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Bad Advice?
Next Topic: How do I incorporate two or more subroutines from a main program

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:07:10 PDT 2025

Total time taken to generate the page: 0.00262 seconds