Search

November 10
LDC »
...a bug to me as it works OK on DMD. At least I compiled a...
November 08
General »
...While a good portion of respondants are ok with the memory safety features of D...
November 01
DIP Ideas »
...data)
{
}
void main()
{

    // THIS OK
    Data data = {
        other: { a: 42 }
    };

    // THIS OK
    pass( Data(other...
October 31
Learn »
...connected.
HTTP request sent, awaiting response... 200 OK
Length: 38449 (38K) [application/x-sh]
Saving...
October 24
Issues »
...v = T.init)
{
}

void main()
{
    foo!int(); // ok
    foo!int("x"); // fail
}

Error: function `foo...
October 23
Learn »
...In my book it should be perfectly ok and inability to do so looks like...
October 23
Issues »
...maxsamukha@gmail.com> ---

Unfortunately, no. This compiles ok:

void foo(T = int)(T a = T...
October 23
Issues »
...foo(T = int)(T a = T.init); // ok

I'd be absolutely happy if this...
October 23
Issues »
...T v = 0)
{
}

void main()
{
    foo(); // ok
    foo(1); // ok
    foo("x"); // fail
}

Error: cannot...
October 22
Learn »
...ve read the interfacing cpp on documentation,
ok then the compiler mesasge for this

libstdc...
1 2 3 4 5
Next ›   Last »