Search

5 days ago
DIP Ideas »
...the existing syntax works fine.

```d
struct Parent {
}

struct Foo : Parent {
}
```

The class behavior that...
5 days ago
DIP Ideas »
...like:

```C
struct Lock {
  ...
};

bool lockit(struct Lock *);

struct Foo {
   ...
   Lock;
   ...
};

void something(/* ... */)
{
    struct Foo...
5 days ago
General »
...be fixed, as it is relied upon.

Struct inheritance alone cannot fix it (note I...
5 days ago
General »
...about the class / strict difference is that struct does not have any classful behaviour, i...
5 days ago
General »
...method as 'reinterpreted' by the child class/struct. Specifically for serialization, removing the need for...
5 days ago
General »
...is to make a template struct similar to this:

```d
struct Serialiser(UserThingT, alias SerialiserFunc...
5 days ago
General »
...struct A
{
}

void serialise(void[], A)
{
    import std.stdio;
    writeln("A.serialize");
}

---
module b;

struct...
5 days ago
Announce »
...Thanks Andrei!
* Edge-case fixes regarding IR struct layouts and link-time culling (for ELF...
5 days ago
General »
...a module somewhere:

```
module app.user_thing:

struct UserThing
{ ... }

void serialise(void[] buffer, ref UserThing...
6 days ago
Learn »
...to follow up, I introduced the `Volatile` struct to my project and had to add...
1 2 3 4 5 6 7
Next ›   Last »