Why is this not allowed?

Nick Treleaven nick at geany.org
Mon Oct 7 09:22:20 UTC 2024


On Monday, 7 October 2024 at 08:05:59 UTC, ryuukk_ wrote:
> I'm working on it TODAY, therefore i need a today's solution

```d
import std.typecons;

struct EntityDef
{
     Tuple!(int, "hp") stats;
}

void main()
{
     EntityDef ed;
     int x = ed.stats.hp;
}
```


More information about the Digitalmars-d-learn mailing list