[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
accessing heap variable elements
- Subject: accessing heap variable elements
- From: Jared Crossley <jaredc(at)nmt.edu>
- Date: Sat, 12 May 2001 10:49:01 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: New Mexico Tech
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:24908
Can any one explain this to me?
------------------------------------
IDL> a=ptr_new( lonarr(2) )
IDL> help, a
A POINTER = <PtrHeapVar2229>
IDL> help, *a
<PtrHeapVar2229>
LONG = Array[2]
IDL> help, *a[0]
<PtrHeapVar2229>
LONG = Array[2]
IDL> help, *a[1]
% Attempt to subscript A with <INT ( 1)> is out of range.
------------------------------------
I would expect that *a[0] and *a[1] would be long integers. How do I
access the elements in the long integer array heap variable?
Thanks, Jared