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

Home » Public Forums » archive » Re: dereference with wildcard
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: dereference with wildcard [message #69735] Tue, 09 February 2010 09:05 Go to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
PimK wrote:
> print, mean( (*(*(*pState).navtrack)[*]).lat )
> % Expression must be a scalar in this context: <POINTER Array[2]>.

This is because you can only dereference scalar pointers. This is a fundamental
limitation of IDL's arrays: all array elements have to be of the same scalar
type. You can have arrays of pointers to anything, since the array is made up
of things of the same type (i.e. pointers). If you dereferenced the whole array,
you would have an array of "anything", which is not allowed. IDL refuses to
evaluate the expression, even if all the pointers pointed to a scalar integer,
and the resulting array would be legal in IDL.


chl
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Image Warp Success?
Next Topic: Re: For-loop vs. Dimensional Juggling relative performance

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

Current Time: Wed Oct 08 15:36:57 PDT 2025

Total time taken to generate the page: 0.00436 seconds