Why are opCall's not implicitely assignable?

nobody nobody at mailinator.com
Mon Sep 25 09:20:58 PDT 2006


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.



More information about the Digitalmars-d-learn mailing list