About Lists of Pointers
From: Steve B (steve_at_www.www)
Date: 10/28/03
- Next message: Perry Way: "Re: About Lists of Pointers"
- Previous message: Ignacio Vazquez: "Re: TAction and ShortCut "Del""
- Next in thread: Perry Way: "Re: About Lists of Pointers"
- Reply: Perry Way: "Re: About Lists of Pointers"
- Reply: John Herbster \(TeamB\): "Re: About Lists of Pointers"
- Reply: Rob Kennedy: "Re: About Lists of Pointers"
- Reply: John Herbster \(TeamB\): "Re: About Lists of Pointers"
- Reply: Dimitrij Klingbeil: "Re: About Lists of Pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 16:01:50 +0000
procedure TMainForm.Proc1;
var
C: Char;
begin
C := 'A';
FStack.Push(Pointer(C));
end;
procedure TMainForm.Proc2;
begin
ShowMessage(Char(FStack.Pop));
end;
In Proc1, the address of a local variable is pushed. So why is the
address still valid in Proc2?
TIA
- Next message: Perry Way: "Re: About Lists of Pointers"
- Previous message: Ignacio Vazquez: "Re: TAction and ShortCut "Del""
- Next in thread: Perry Way: "Re: About Lists of Pointers"
- Reply: Perry Way: "Re: About Lists of Pointers"
- Reply: John Herbster \(TeamB\): "Re: About Lists of Pointers"
- Reply: Rob Kennedy: "Re: About Lists of Pointers"
- Reply: John Herbster \(TeamB\): "Re: About Lists of Pointers"
- Reply: Dimitrij Klingbeil: "Re: About Lists of Pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|