dlang custom keyword for struct/class

Vitaliy Fadeev vital.fadeev at gmail.com
Sun Sep 17 15:55:37 UTC 2023


Is it possible to write like this in D?

```d
struct Message
{
    ulong timestamp;
}

Message LongMessage
{
     ubyte[255] s;
}
//
// it mean
//
// struct LongMessage
// {
//     Message _super;
//     alias _super this;
//     ubyte[255] s;
// }
//
// or
//
// struct LongMessage
// {
//     ulong timestamp;
//     ubyte[255] s;
// }
```

Is it possible?



More information about the Digitalmars-d-learn mailing list