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 
Switch to threaded view of this topic Create a new topic Submit Reply
Implicit print bug in IDL 8.4? [message #89573] Mon, 27 October 2014 14:27 Go to next 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.
Re: Implicit print bug in IDL 8.4? [message #89585 is a reply to message #89573] Thu, 30 October 2014 02:38 Go to previous messageGo to next message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
Hi,

On 27.10.2014 22:27, pp.penteado@gmail.com wrote:
> To me, this looks like a bug,

I'm surprised nobody answered to this. Did you contact the support?

Fabien
Re: Implicit print bug in IDL 8.4? [message #89603 is a reply to message #89585] Thu, 30 October 2014 16:04 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 10/30/14, 3:38 AM, Fabien wrote:
> Hi,
>
> On 27.10.2014 22:27, pp.penteado@gmail.com wrote:
>> To me, this looks like a bug,
>
> I'm surprised nobody answered to this. Did you contact the support?
>
> Fabien
>

Looks like a bug to me to.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
  Switch to threaded view of this topic Create a new topic Submit Reply
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 11:37:51 PDT 2025

Total time taken to generate the page: 0.00471 seconds