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

Home » Public Forums » archive » Re: EPS fragment output for latex font interpretation?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
array subscript conversion [message #55037 is a reply to message #54938] Wed, 25 July 2007 08:36 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
Hi guys,

according to the manual, array subscripts are converted to long (or long64
on 64 bit systems) before use if necessary, so an explicit conversion
should not affect the result.

IDL> print, !version
{ x86 linux unix linux 6.3 Mar 23 2006 32 64}
IDL>
IDL> a=lindgen(10)
IDL> print, a[[long(-1ull)]]
0
IDL> print, a[[-1ull]]
9

Is it a bug or I am missing something?

regards,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CW_BGROUP and scrolling
Next Topic: Re: array subscript conversion

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

Current Time: Sat Oct 11 02:36:10 PDT 2025

Total time taken to generate the page: 0.00186 seconds