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:

> > I wonder whether is is possible to implement something similar in
> > newer delphi versions in order to avoid aforementioned ubiquitous
> > nested try/finally boredom?
> 
> With Delphi's generics it's possible to build some kind of equivalent
> for std::auto_ptr<>.

A simpler version was already possible using interfaces without
generics.

Alernatively, using anonymous methods (and generics) you can implement something like C#'s "using()" construct.      -- Rudy Velthuis (TeamB) http://www.teamb.com
"A poem is never finished, only abandoned."  -- Paul Valery (1871-1945)
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Mon, 25 Nov 2024 11:54:45 UTC
Copyright © 2009-2024
HREF Tools Corp.