Bug in RefCounted?

Ali Çehreli acehreli at yahoo.com
Tue Oct 29 10:57:00 PDT 2013


On 10/29/2013 08:47 AM, Maxim Fomin wrote:
> On Monday, 28 October 2013 at 20:43:01 UTC, Ali Çehreli wrote:
>>
>> What is the purpose of writeln in that delegate? Obviously, to print
>> 1. Yet it doesn't happen that way. Is this accepted to be a bug?
>> Should the programmer 'new' the object instead?
>>
>> Ali
>
> In my opinion it is a corner case, a consequence of two things: 1) need
> to allocate struct into heap due to lambda 2) need to put dtor
> invocation in the end as usual.

As a continuation of this sub thread, I've opened the following thread 
in the D newsgroup:

   http://forum.dlang.org/post/l4osr0$2f3q$1@digitalmars.com

Ali



More information about the Digitalmars-d-learn mailing list