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; ```
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; ```