On Monday, 6 October 2014 at 06:28:58 UTC, eles wrote:
On Monday, 6 October 2014 at 06:28:02 UTC, eles wrote:
On Monday, 6 October 2014 at 06:23:42 UTC, eles wrote:
On Monday, 6 October 2014 at 03:48:49 UTC, Andrei Alexandrescu wrote:
On 10/5/14, 3:08 PM, eles wrote:
On Sunday, 5 October 2014 at 14:55:38 UTC, Dicebot wrote:

I like the safety that a GC guarantees, but is a too big price to
be paid for that...

Just look at this abomination from here:

http://agilology.blogspot.com/2009/01/why-dispose-is-necessary-and-other.html

sqlConnection.Close();
sqlConnection.Dispose();
sqlConnection = null;

Is this your idea about releasing a resource? Why is this better than writing delete/dispose sqlConnection?

If you ask to use structs for RAII, I am afraid that you will receive a DFront proposal.

Reply via email to