Search

November 20
Learn »
...Windows)
{
    enum __c_long  : int;
    enum __c_ulong : uint;

    alias int   c_long;
    alias uint...
November 19
Issues »
...struct Bar {
        align(1):
    const char* name;
    int b = 2;
}

struct Foo {
    static immutable align...
November 19
Issues »
...struct TracesMetadata {
align(1):
    const char* name;
    int b = 2;
}

@section(".traces.metadata") @assumeUsed
static...
November 19
DIP Development »
...it comes to const/immutable:

    struct S { int i; char c; }

    void main()
    {
        S dest...
November 19
Issues »
...reading overlapped pointers:

```
union Bar
{
    string name;
    int b;
}

static immutable Bar bar = Bar("foo...
November 19
Issues »
...struct Bar {
        align(1):
    const char* name;
    int b = 2;
}

struct Foo {
    static immutable Bar...
November 19
DIP Ideas »
...int a;
```
In this case, one should be forced to use parentheses:
```d
@(_ => 2)
int...
November 18
Issues »
...Reporter: bugzilla@digitalmars.com

```
@safe:

struct T { int* a,b,c; }

void bar(void[24...
November 18
Issues »
...this() {}
    }

    static struct S
    {
        union
        {
            Member member;
            int i;
        }
    }

    static assert(!hasElaborateDestructor!S);
}
---

fails to...
November 17
General »
...the compiler uses it:

```d
struct S
{
    int x;
}

void main()
{
    auto i = typeid(S...
1 2 3 4 5 6 7 8 9
Next ›   Last »