Search

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...
November 17
General »
...be printed:

   import std.stdio;

   void main ()
   {
      int [] arr;

      struct V {
         size_t length;
         void...
November 16
Issues »
...Fix bugzilla 24337 - Segfault when printing an int[] cast from a string
(#16729)

https://github...
November 16
Issues »
...char)[], bool, bool, bool, bool, bool) [0x83f9b75c09c]
??:? int dmd.main.tryMain(ulong, const(char)**, ref...
1 2 3 4 5 6 7 8 9 10 11 12
Next ›   Last »