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

Home » Public Forums » archive » Re: Newbie Questions
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: Newbie Questions [message #25109 is a reply to message #25036] Thu, 17 May 2001 05:15 Go to previous message
Geoff Herbynchuk is currently offline  Geoff Herbynchuk
Messages: 6
Registered: May 2001
Junior Member
Thanks for the help guys, got that problem fixed. I'm hoping you can help
me with one more thing with IDL pointers.
When we do something like:

foo_ptr = ptr_new(foo)

foo_ptr points to a memory location in the heap memory that contains
foo's value, correct? So, am I safe to assume it copys whatever the value of
foo is into the heap variable that foo_ptr is pointing too?
And, if we do:

bar_ptr = ptr_new(bar, /no_copy)

bar_ptr will now just point to the memory location where bar is stored
(not copy it to a heap location)? We can then update the bar, or the
components of bar(if bar is a structure) by dereferencing bar_ptr, right?
For example:

*bar_ptr.name = 'Geoff'

Thanks for everyone's help. I've only worked with pointers in
C/C++ before, and I'm getting the impression that these don't work exactly
the same way. =)

Geoff Herbynchuk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL sockets
Next Topic: Re: WTD: Orbital analysis with IDL

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

Current Time: Thu Oct 09 07:21:26 PDT 2025

Total time taken to generate the page: 0.40218 seconds