What wrong?

Fyodor Ustinov via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 2 12:38:00 PDT 2015


On Saturday, 2 May 2015 at 19:13:45 UTC, Dennis Ritchie wrote:
> On Saturday, 2 May 2015 at 02:51:52 UTC, Fyodor Ustinov wrote:
>> Simple code:
>>
>> http://pastebin.com/raw.php?i=7jVeMFXQ
>>
>> This code works compiled by DMD v2.066.1 and LDC2 (0.15.1) 
>> based on DMD v2.066.1 and LLVM 3.5.0.
>>
>> $ ./z
>> TUQLUE
>> 42
>> 11
>>
>> Compiled by DMD v2.067.1 the program crashes:
>> $ ./aa
>> TUQLUE
>> Segmentation fault
>>
>> What I'm doing wrong?
>
>
> I think the problem is in these lines:
>
> -----
> receive(
> 	(supervisorAnswer a) => r = a.ret
> );
>
> Partially it works :)

I see it by the lack of "42". :)

But why is this "receive" breaks down?


More information about the Digitalmars-d-learn mailing list