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

Home » Public Forums » archive » how does /no_copy work???
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: how does /no_copy work??? [message #15722 is a reply to message #15651] Thu, 03 June 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
John Persing (persing@frii.com) writes:

> But let me ask, how can this be possible when deal with a variable that
> "starts" on the stack and "ends up" on the heap? If B is an ordinary array
> and A is property of an object, then this is what will occur. The heap and
> stack are entirely different memory locations.

I'm rapidly getting out of my depth here, but it seems to me that
the *object* itself is on the heap, but that the actual data that
fields in the object point to can be anywhere in process memory.
All that has to be stored in the object field is a pointer
(a *real* pointer, not an IDL pointer) to the real data. This
is what is passed, isn't it, when a variable is passed by
reference? If that wasn't the case, how else could a variable
be stored in a widget user value with NO_COPY, which to my
mind is equivalent to the heap (I.e, a global memory location)?

And keep in mind that "stack" and "heap" have meanings in IDL
that *may* not correspond to what you usually think about when you
use these terms.

Whew, I can't feel the bottom any more! :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Redhat Linux 6.0 troubles continue
Next Topic: Re: YOURE NOT GOING TO BELIEVE THIS! 6634

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

Current Time: Fri Oct 10 20:02:58 PDT 2025

Total time taken to generate the page: 0.32260 seconds