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