Re: About Lists of Pointers

From: John Herbster \(TeamB\) ("John)
Date: 10/28/03


Date: Tue, 28 Oct 2003 10:35:33 -0600


"Steve B" wrote
> In Proc1, the address of a local variable is pushed.
> So why is the address still valid in Proc2?

Steve,
As I think that you are aware, the address of the original
"C" variable was on the stack in Proc1 but may be used
for something else in Proc2. If that address still points to
a character value "A" (after you fix the other errors in your
code), then I would say that you could just consider it
"by chance". What are you really trying to do?
Regards, JohnH



Relevant Pages

  • finding process and waiting for it to end
    ... I am working on a jscript that launches a process (proc1). ... Proc1 launches a secondary process (proc2) and then exits. ... I want my script to launch proc1 and then find the process associated ...
    (microsoft.public.scripting.jscript)
  • waiting for input of widget and return input value
    ... run proc1, then proc1 will invoke proc2 and popup some checkbutton for ... to invoke proc3, proc3 will check which button was checked and return a ... checked variable list, then proc2 return the list to proc1, and proc1 ... proc proc1 { ...
    (comp.lang.tcl)
  • Re: Is this a legitimate use of "reutrn -level"?
    ... puts "This is proc0" ... proc proc1 { ... proc proc2 { ...
    (comp.lang.tcl)
  • Re: About Lists of Pointers
    ... > In Proc1, the address of a local variable is pushed. ... is NOT the same as Addr, although both return pointers. ... When Proc2 gets called ...
    (borland.public.delphi.language.objectpascal)
  • Re: About Lists of Pointers
    ... "Steve B" wrote ... > In Proc1, the address of a local variable is pushed. ... Can't answer without knowing what your FStack object member is.. ...
    (borland.public.delphi.language.objectpascal)