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

Home » Public Forums » archive » dictionary bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: dictionary bug [message #89583 is a reply to message #89582] Thu, 30 October 2014 00:55 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, October 30, 2014 8:51:59 AM UTC+1, Fabien wrote:
> Hi Helder,
>
> IDL> !VERSION
> {
> ARCH: "x86_64",
> OS: "linux",
> OS_FAMILY: "unix",
> OS_NAME: "linux",
> RELEASE: "8.3",
> BUILD_DATE: "Nov 15 2013",
> MEMORY_BITS: 64,
> FILE_OFFSET_BITS: 64
> }
>
> IDL> a = dictionary()
> IDL> a['item'] = 0l
> IDL> a.item++
> IDL> a
> {
> "item": 0
> }
> IDL> a['item']++
> % Type conversion error: Unable to convert given STRING to Long64.
> % Detected at: $MAIN$
> % Object reference expression not allowed in this context: A.
> % Execution halted at: $MAIN$
>
>
> Is this supposed to work in IDL 8.4 or in Windows?
>
> Fabien

Hi Fabien,
sorry I didn't specify the !Version:

IDL> !VERSION
{
"ARCH": "x86_64",
"OS": "Win32",
"OS_FAMILY": "Windows",
"OS_NAME": "MicrosoftWindows",
"RELEASE": "8.4",
"BUILD_DATE": "Sep272014",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}

This sequence of commands crashes IDL:

IDL> a = dictionary()
IDL> a['item'] = 0l
IDL> a.item++

Whereas this works:
IDL> a = dictionary()
IDL> a['item'] = 0l
IDL> a['item']++
IDL> a
{
"item": 1
}

I never tried this in 8.3 and I've uninstalled 8.3 already.

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: get size of function graphics objects
Next Topic: strange behaviour of color property in function graphics

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

Current Time: Sat Oct 11 09:26:50 PDT 2025

Total time taken to generate the page: 0.08269 seconds