5 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...the existing syntax works fine.
```d
struct Parent {
}
struct Foo : Parent {
}
```
The class behavior that... | |||
5 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...like:
```C
struct Lock {
...
};
bool lockit(struct Lock *);
struct Foo {
...
Lock;
...
};
void something(/* ... */)
{
struct Foo... | |||
5 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...be fixed, as it is relied upon. Struct inheritance alone cannot fix it (note I... | |||
5 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...about the class / strict difference is that struct does not have any classful behaviour, i... | |||
5 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...method as 'reinterpreted' by the child class/struct. Specifically for serialization, removing the need for... | |||
5 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...is to make a template struct similar to this: ```d struct Serialiser(UserThingT, alias SerialiserFunc... | |||
5 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...struct A
{
}
void serialise(void[], A)
{
import std.stdio;
writeln("A.serialize");
}
---
module b;
struct... | |||
5 days ago Announce » LDC 1.40.0-beta5 | |||
|---|---|---|---|
| |||
...Thanks Andrei! * Edge-case fixes regarding IR struct layouts and link-time culling (for ELF... | |||
5 days ago General » Something like ADL from C++? | |||
|---|---|---|---|
| |||
...a module somewhere:
```
module app.user_thing:
struct UserThing
{ ... }
void serialise(void[] buffer, ref UserThing... | |||
6 days ago Learn » Re: volatile struct definition for peripheral control registers | |||
|---|---|---|---|
| |||
...to follow up, I introduced the `Volatile` struct to my project and had to add... | |||
Copyright © 1999-2021 by the D Language Foundation