On Saturday, 5 October 2024 at 17:26:59 UTC, Steven Schveighoffer wrote:
It’s the semicolon. As soon as the closing brace, the declaration is over. You would have to invent new syntax.

Maybe type tuple syntax will support this:
```d
struct EntityDef
{
    (int hp) stats;
}

EntityDef ed;
int x = ed.stats.hp;
```

Reply via email to