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

Home » Public Forums » archive » renaming a variable without making a copy
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: renaming a variable without making a copy [message #68976 is a reply to message #68935] Thu, 10 December 2009 08:30 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On 10 déc, 16:36, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
> alx schrieb:
>
> IDL> a=findgen(2,2)
> IDL> b=dblarr(4)
> IDL> reads,a,b
> IDL> print,b
>        0.0000000       1.0000000       2.0000000       3.0000000
>
> btw. just seen that reads, 1 seems to be valid, but what does it do?
>

I did not realize so far that 'reads' could actually mean "read from
memory". Thanks for the tip !
Here is an immediate application: you want to import some structure
from a COM object, written in C or whatsoever.
But the IDL COM bridge does not support passing of structure. So you
need to import it as a typecasted (variant) array
of simple type. Then, "reads" will allow to recover and use the
structure in IDL...
alain.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vectorize procedure
Next Topic: array subscripting problem

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

Current Time: Fri Oct 10 16:09:25 PDT 2025

Total time taken to generate the page: 1.04158 seconds