🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #638

Re: try catch question

#638
From: Tor Iver Wilhelmsen (TeamB)
Date: Tue, 20 Jul 2004 19:31
15 lines
1813 bytes
On Mon, 19 Jul 2004 12:57:58 +0200, Rudy Velthuis [TeamB]  
<velthuis@gmail.com> wrote:

> So, we *know* that because it is documented and because we can see the
> source. But that is an implementation detail.

But the "detail" is important enough to warrant a separate language  
feature (the "overloading" of the /using/ keyword - the syntactic sugar  
for try/finally). I'd say that is guarantee enough that it actually will  
clean up resources - including calling Close(). After calling Dispose(),  
after all, the object should be a candidate for garbage collection.

-- 
Tor Iver Wilhelmsen
TeamB
Technical Details
Message-ID: <opsbga6xvjz4mody@tiwilhel>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40f3748e@newsgroups.borland.com> <40F380DB.819CE161@midnightbeach.com> <40f934bb$1@newsgroups.borland.com> <s3am1jplg0p9$.dlg@marcrohloff.40tude.net> <is0jf0l76g610ajlns5154ij25vantsvp6@4ax.com> <xn0dkx9y9ftcjf013-moderator@newsgroups.borland.com> <40faddbc$1@newsgroups.borland.com> <xn0dkyerh1bs6700c-moderator@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,f80ee75cfac101b9
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: Re: try catch question
References: <40f3748e@newsgroups.borland.com> <40F380DB.819CE161@midnightbeach.com> <40f934bb$1@newsgroups.borland.com> <s3am1jplg0p9$.dlg@marcrohloff.40tude.net> <is0jf0l76g610ajlns5154ij25vantsvp6@4ax.com> <xn0dkx9y9ftcjf013-moderator@newsgroups.borland.com> <40faddbc$1@newsgroups.borland.com> <xn0dkyerh1bs6700c-moderator@newsgroups.borland.com>
Message-ID: <opsbga6xvjz4mody@tiwilhel>
Date: Tue, 20 Jul 2004 21:31:35 +0200
From: "Tor Iver Wilhelmsen (TeamB)" <toriver@operamail.com>
Organization: TeamB
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
User-Agent: Opera M2/7.52 (Win32, build 3834)
NNTP-Posting-Host: 80.202.75.87
X-Trace: newsgroups.borland.com 1090351748 80.202.75.87 (20 Jul 2004 12:29:08 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail