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

Home » Public Forums » archive » Re: On Pointers and Culture
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: On Pointers and Culture [message #42976] Fri, 04 March 2005 12:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JD Smith writes:

> Not only are pointer variables "more like IDL variables", they *are*
> IDL variables.

Alright! Another tutorial!!

But I do take issue with this:

> IDL> *p=findgen(10,10)
> IDL> help,/heap
> Heap Variables:
> # Pointer: 1
> # Object : 0
>
> <PtrHeapVar2> FLOAT = Array[10, 10]
>
> I just changed the contents of that heap variable. And no, this
> is no more dangerous than doing this:
>
> IDL> a=1
> IDL> a=findgen(10,10)

I think "no more dangerous" is like saying a handgun
is no more dangerous than a rifle. It don't matter much
if it's aimed at you! I will agree that a marksman who
has taken his Hunter Safety class to heart is probably
no immediate threat. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Arrays suck. Loops rock.
Next Topic: surface fitting...

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

Current Time: Sat Oct 11 15:27:54 PDT 2025

Total time taken to generate the page: 0.31903 seconds