Karen Lanrap wrote:
> I have to write
>
> Car car;
> void main()
> {
> car= new Car;
> with(car)
> {
> roof.color= COLOR.LIGHTBLUE;
> seats[0].color= COLOR.DARKBLUE;
> seats[1].color= COLOR.RED
> // ...
>
> instead? Thereby explicitely saying that I mean the color each time?
D supports anonymous structs, unions and enums.