Why is this not allowed?
    ryuukk_ 
    ryuukk.dev at gmail.com
       
    Sat Oct  5 06:35:57 UTC 2024
    
    
  
Why is this allowed
```D
struct EntityDef
{
     struct
     {
         int hp;
     }
}
```
But not this fucking thing?
```D
struct EntityDef
{
     struct
     {
         int hp;
     } stats;
}
```
Let me name my shit
No, i don't want to do:
```D
struct EntityDef
{
     struct Stats
     {
         int hp;
     } Stats stats;
}
```
Repeating the same name 3 times, i should go back to the stone 
age too no?
C and all other C like languages allow me to be concise
Why is it a D thing to be backward?
    
    
More information about the Digitalmars-d-learn
mailing list