What are the worst parts of D?

eles via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 6 01:12:55 PDT 2014


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.


More information about the Digitalmars-d mailing list