Article

From:
To:
Ralf Stocker
Subject:
Re: Delphi Project X Cross GUI
Newsgroup:
embarcadero.public.delphi.non-technical

Re: Delphi Project X Cross GUI

Moritz Beutel wrote:

> wow - discarded ref-counted return values are actually kept alive
> until end of scope? That's INCREDIBLY useful :)

Well, apparently it is. <g>

The smallest scope in Delphi is the routine. Any interface created will not be released until the end of that scope is reached. To make this happen, "discarded" return values are assigned to hidden (or anonymous, whatever you prefer) variables.
-- Rudy Velthuis (TeamB) http://www.teamb.com
"Ask her to wait a moment - I am almost done."  -- Carl Friedrich Gauss (1777-1855), while working, when     informed that his wife is dying
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Mon, 25 Nov 2024 11:55:03 UTC
Copyright © 2009-2024
HREF Tools Corp.