Article

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

Re: Delphi Project X Cross GUI

Hello,

Barry Kelly wrote:

> [...]
>
> procedure P;
> begin
>   EnableDisableControls('Foo');
>   Writeln('Controls are disabled now');
> end;
> 
> begin
>   P;
> end.
> 
> Output:
> 
> Disable controls on Foo
> Controls are disabled now
> Enable controls on Foo
> 
> It is equivalent to the try / finally etc. owing to the mechanism
> behind reference counting.

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

-- Moritz
"Hey, it compiles! Ship it!"
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Mon, 25 Nov 2024 11:32:40 UTC
Copyright © 2009-2024
HREF Tools Corp.