What wrong?
sclytrack via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu May 14 12:01:15 PDT 2015
On Tuesday, 5 May 2015 at 07:41:04 UTC, sclytrack wrote:
> On Monday, 4 May 2015 at 01:03:43 UTC, Fyodor Ustinov wrote:
>> On Saturday, 2 May 2015 at 20:46:32 UTC, Dennis Ritchie wrote:
>>> On Saturday, 2 May 2015 at 19:38:01 UTC, Fyodor Ustinov wrote:
>>>> I see it by the lack of "42". :)
>>>>
>>>> But why is this "receive" breaks down?
>>>
import std.stdio;
import std.variant;
struct SoMany
{
int number = 10;
~this()
{
writeln(number);
}
}
void main()
{
Variant v = SoMany();
}
DMD64 D Compiler v2.067.1
10
10
10
10
gdc (Debian 4.9.2-10) 4.9.2
10
10
For DMD I'm getting 4x10 and for gdc 2x10
More information about the Digitalmars-d-learn
mailing list